dim realip,proxy realip = Request.ServerVariables("HTTP_X_FORWARDED_FOR") proxy = Request.ServerVariables("REMOTE_ADDR") if realip = "" then GetIp = proxy else GetIp = realip end if
Sub FYCC_03() Set fsoObject = Server.CreateObject("Scripting.FileSystemObject") file = server.mappath(""FYCC_05"/CCLog.txt") if not fsoObject.fileexists(file) then fsoObject.createtextfile file,true,false end if set tsObject = fsoObject.OpenTextFile(file,8) tsObject.Writeline " "GetIp"" Set tsObject = Nothing Set fsoObject = Nothing End Sub
if FYCC_18>0 then if FYCC_17>0 then if minute(now())>-1 and minute(now())4 then Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objCountFile=objFSO.CreateTextFile(Server.MapPath(""FYCC_05"/CCLog.txt"),True) objCountFile.Write " " objCountFile.Close Set objCountFile=Nothing Set objFSO = Nothing end if Set fsoObject = Server.CreateObject("Scripting.FileSystemObject") file = server.mappath(""FYCC_05"/CCLog.txt") if not fsoObject.fileexists(file) then fsoObject.createtextfile file,true,false if err.number>0 then response.write "您的空間不支持FSO,請同您的空間商聯(lián)系,或者查看相關(guān)權(quán)限設(shè)置" response.end end if end if Set objCountFile = fsoObject.OpenTextFile(Server.MapPath(""FYCC_05"/CCLog.txt"),1,True) If Not objCountFile.AtEndOfStream Then fdata = objCountFile.ReadAll Set objCountFile = Nothing if instr(fdata,""GetIp"")>0 then response.write "您的IP["GetIp"]已經(jīng)被禁止!如需要解封,請聯(lián)系本站管理員或在下一個小時的前3分鐘內(nèi)再訪問本站" response.end end if Set fsoObject = Nothing end if
if Session("FYCC_01")>FYCC_19 and minute(now())>Session("FYCC_02") then Session("FYCC_01")=1 Session("FYCC_02")=minute(now()) elseif Session("FYCC_01")>FYCC_21-1 and minute(now())=Session("FYCC_02") then if FYCC_17>0 and Session("FYCC_01")>FYCC_21-1 then Call FYCC_03() end if response.redirect ""FYCC_20"" '建議輸入存放病毒的網(wǎng)址!!! response.end elseif Session("FYCC_01")>FYCC_19 and minute(now())=Session("FYCC_02") then response.write "本站啟動防刷新功能,1分鐘內(nèi)只能翻"FYCC_19"頁,請在下一分鐘再刷新本頁面" Session("FYCC_01")=Session("FYCC_01")+1 response.end else if Session("FYCC_01")="" then Session("FYCC_01")=1 Session("FYCC_02")=minute(now()) else if minute(now())>Session("FYCC_02") then Session("FYCC_01")=1 Session("FYCC_02")=minute(now()) else Session("FYCC_01")=Session("FYCC_01")+1 end if end if End if end if %> 本地下載