- <%
- '==================
- '飛云防CC攻擊ASP程序插件
- '建議除必須修改的參數(shù)內(nèi)容外不要修改其他內(nèi)容
- '如果需要反饋錯誤或提交意見,可以到落伍(IM286.COM)聯(lián)系 “正版飛云”
- '==================
- dim FYCC_19,FYCC_20,FYCC_21,FYCC_05
- dim FYCC_18
- FYCC_05=""
- 'CCLog.txt存放的路徑文件夾!需要手動創(chuàng)建!建議留空
- '如果輸入,請在前面加上符號"/"
- FYCC_18=1
- '防刷新CC攻擊關(guān)閉與啟動,1為啟動0為關(guān)閉
- FYCC_17=1
- '防刷新禁止IP功能關(guān)閉與啟動,1為啟動0為關(guān)閉
- FYCC_19=10
- '每分鐘刷新次數(shù),將會出現(xiàn)提示
- FYCC_20="http://www.163.com"
- '被封IP后自動轉(zhuǎn)入的頁面,建議輸入存放病毒的網(wǎng)址!!!
- FYCC_21=21
- '惡意刷新幾次將禁止IP
- 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
- %>
飛云寫的防CC攻擊的ASP程序插件 打包下載
2019-10-13 13:00asp代碼網(wǎng) ASP教程
飛云寫的防CC攻擊的ASP程序插件 打包下載
延伸 · 閱讀
- 2022-03-03高防服務(wù)器之CC攻擊有哪些類型
- 2022-02-20如何判斷服務(wù)器是否被CC攻擊?
- 2021-10-25Linux系統(tǒng)防CC攻擊自動拉黑IP增強(qiáng)版(Shell腳本)
- 2021-08-27Linux VPS下簡單解決CC攻擊的方法
- 2021-06-01網(wǎng)站遭遇CC攻擊,高防服務(wù)器如何去助力?
- 2021-05-26如何快速的使用百度云加速防御CC攻擊?
- ASP教程
JScript中遍歷Request表單參數(shù)集合的方法
這篇文章主要介紹了JScript中遍歷Request表單參數(shù)集合的方法,本文以遍歷Request.QueryString集合為例給出了實(shí)現(xiàn)代碼,需要的朋友可以參考下...
- ASP教程
asp 標(biāo)記字符串中指定字符變色不區(qū)分大小寫
今天遇到這種問題,單純的使用replace函數(shù)不行,他會改變原有的字符串的大小寫,在網(wǎng)上找到相關(guān)的代碼,自己備份下...
- ASP教程
asp Access數(shù)據(jù)備份,還原,壓縮類代碼
asp Access數(shù)據(jù)備份,還原,壓縮類實(shí)現(xiàn)代碼,大家可以參考下。...
- ASP教程
asp之基于adodb.stream的文件操作類
asp之基于adodb.stream的文件操作類...
- ASP教程
ASP.NET 數(shù)據(jù)源
數(shù)據(jù)源 一個 data sourse 控件與數(shù)據(jù)綁定的控件相互作用,并隱藏了復(fù)雜的數(shù)據(jù)的聯(lián)編過程。這些是提供數(shù)據(jù)給 data bound 控件的工具,并且支持如插入,刪除...
- ASP教程
ASP常用函數(shù):getpy()
ASP常用函數(shù):getpy()...
- ASP教程
asp+javascript實(shí)現(xiàn)404頁的處理轉(zhuǎn)換
asp+javascript實(shí)現(xiàn)404頁的處理轉(zhuǎn)換...
- ASP教程
asp 采集實(shí)戰(zhàn)代碼
最近實(shí)在是太流行采集了,本人是不喜歡采集的,但對采集的原理我卻很有興趣進(jìn)行研究,拿到了網(wǎng)上采集常用函數(shù),對其進(jìn)行了一番研究,并實(shí)戰(zhàn),結(jié)果...