最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 简单防止外部提交
时间:2022-06-30 09:13:47 编辑:袖梨 来源:一聚教程网
'****************************************************
'函数名:ChkPost
'作 用:禁止站外提交表单
'返回值:true站内提交,flase站外提交
'****************************************************
Public Function ChkPost()
Dim url1,url2
chkpost=true
url1=Cstr(Request.ServerVariables("HTTP_REFERER"))
url2=Cstr(Request.ServerVariables("SERVER_NAME"))
If Mid(url1,8,Len(url2))url2 and instr(url1,"dl.loupan.com") = 0 Then
chkpost=false
exit function
End If
End function
'****************************************************
'函数名:GetUrl
'作 用:获取url包括参数
'返回值:获取url包括参数
'****************************************************
Public Function GetUrl()
Dim strTemp
strTemp=Request.ServerVariables("Script_Name")
If Trim(Request.QueryString) "" Then
strTemp=strTemp&"?"
For Each M_item In Request.QueryString
strTemp=strTemp&M_item&"="&Server.UrlEncode(Trim(Request.QueryString(""&M_item&"")))
next
end if
GetUrl=strTemp
End Function
'防止外部提交使用方法
call ChkPost()'
相关文章
- 傻瓜英语app哪里能练习单词口语 04-03
- 192.168.1.1登录入口-路由器通用地址大全-192.168.1.1各品牌共用地址指南 04-03
- OOPZ官网网址是多少 04-03
- 追剧达人怎么关闭广告 04-03
- 小红书网页版最新直达入口-小红书官方网页版登录网址 04-03
- 番茄音乐官网怎么登录 04-03