'禁止站外提交頁面和數(shù)據
網絡 2019/4/16 11:31:00 深山工作室 字體:
大 中 小 瀏覽 5331
<%
call waizhan_addform()
'禁止站外提交頁面和數(shù)據
sub waizhan_addform()
dim this_page_url : this_page_url=cstr(request.servervariables("HTTP_REFERER")) '獲取前一個頁面的全URL
dim this_page_yuming : this_page_yuming=cstr(request.servervariables("SERVER_NAME")) '獲取當前頁面所在服務器域名
'response.write("前一個頁面的全URL:" & this_page_url & "<br />")
'response.write("當前頁面所在服務器IP:" & this_page_yuming & "<br />")
if mid(this_page_url,8,len(this_page_yuming))<>this_page_yuming then
response.write("禁止外部提交數(shù)據!")
response.end()
end if
end sub
%>
- 相關閱讀
- asp中利用split,instr組合去除二維數(shù)組中重復項
- ASP過濾SQL中的非法字符并格式化相關的html代碼
- 讓層處于上一個DIV層的右下角
- ASP把數(shù)字用逗號每3位隔開顯示代碼
- CSS編寫過程中常見的10個錯誤
- 深山旅行社網站管理系統(tǒng) v1.5
- windows 部分熱鍵集錦
- 振輝消音器
- 共有0條關于《'禁止站外提交頁面和數(shù)據》的評論
- 發(fā)表評論