欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

用asp腳本實(shí)現(xiàn)限制IP訪問

 更新時(shí)間:2007年06月06日 00:00:00   作者:  
cookies跨不了域很麻煩,有了這個(gè)腳本就方便多了.
<%
ip=Request.ServerVariables("REMOTE_ADDR")
set Fso=CreateObject("Scripting.FileSystemObject")
Set Files=Fso.OpenTextFile(server.mappath("./ip.txt"),1,false)
data=files.readall
files.close
set fso=nothing
if InstrRev(data, ip, -1, 0) = 0 then
    set Fso=CreateObject("Scripting.FileSystemObject")
    Set File=Fso.OpenTextFile(server.mappath("./ip.txt"),8,true)
    file.writeline ip
    file.close
    set fso=nothing
    response.write "此IP今天第一次訪問該頁面"
    response.end
else
    response.write "此IP以前訪問過了"
    response.end
end if
%> 

相關(guān)文章

最新評(píng)論