'禁止站外提交页面和数据
网络 2019/4/16 11:31:00 深山工作室 字体:
大 中 小 浏览 5217
<%
call waizhan_addform()
'禁止站外提交页面和数据
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("禁止外部提交数据!")
response.end()
end if
end sub
%>
- 相关阅读
- 正则表达式全部符号解释
- 总结一下with open()和open()的区别与使用方法
- 北京青年旅行社股份有限公司
- 留言板留言板V7.2
- 贵豪旅行社
- 许愿墙开始重新设计。
- 深山行者留言系统V1.0 (简称深山留言V1.0)
- 8种Python字符串拼接的方法,你知道几种
- 共有0条关于《'禁止站外提交页面和数据》的评论
- 发表评论