大虾能解释一下我的二级域名的dns解析代码?还有什么地方出问题了吗?
下面代码DNS.ASP为一个网站的二级域名解析程序,我的网站是www.zzsts.com,在iis里将dns.ASP设置到默认文档最上面,结果进入网站首页出现 “此用户已经被删除或未通过审核!”的错误。请问以下代码有什么地方弄错了吗?
<%
sURL=replace(Request.ServerVariables("HTTP_HOST"),"www.","")
if InStr(sURL,"=")<>0 or InStr(sURL,"`")<>0 or InStr(sURL,"'")<>0 or InStr(sURL," ")<>0 or InStr(sURL," ")<>0 or InStr(sURL,"'")<>0 or InStr(sURL,chr(34))<>0 or InStr(sURL,"\")<>0 or InStr(sURL,",")<>0 or InStr(sURL,"<")<>0 or InStr(sURL,">")<>0 then
Response.Status= "404 no found"
Response.End
end if
first_name=split(sURL,".")
if ubound(first_name)>3 then
Response.Status= "404 no found"
Response.End
end if
if first_name(1)="zzsts.com" then
sql="select url,[user] from corporation where [user]='"&first_name(0)&"' and flag=1"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then
response.write getUrl(""&weburl&"company/no.jsp")
else
response.write getUrl(""&weburl&""&replace(rs("url"),""&rs("user")&".html","home.jsp?MemberId="&rs("user")&"")&"")
end if
rs.Close
set rs=nothing
conn.Close
set conn=nothing
else
response.write"<div align=center><br><br><br><font color=red>此用户已经被删除或未通过审核!</font></div>"
response.write"<div align=center><br><br><br><b><a href=javascript:history.go(-1)>返回</a></b></div>"
end if
%>
<%
sURL=replace(Request.ServerVariables("HTTP_HOST"),"www.","")
if InStr(sURL,"=")<>0 or InStr(sURL,"`")<>0 or InStr(sURL,"'")<>0 or InStr(sURL," ")<>0 or InStr(sURL," ")<>0 or InStr(sURL,"'")<>0 or InStr(sURL,chr(34))<>0 or InStr(sURL,"\")<>0 or InStr(sURL,",")<>0 or InStr(sURL,"<")<>0 or InStr(sURL,">")<>0 then
Response.Status= "404 no found"
Response.End
end if
first_name=split(sURL,".")
if ubound(first_name)>3 then
Response.Status= "404 no found"
Response.End
end if
if first_name(1)="zzsts.com" then
sql="select url,[user] from corporation where [user]='"&first_name(0)&"' and flag=1"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then
response.write getUrl(""&weburl&"company/no.jsp")
else
response.write getUrl(""&weburl&""&replace(rs("url"),""&rs("user")&".html","home.jsp?MemberId="&rs("user")&"")&"")
end if
rs.Close
set rs=nothing
conn.Close
set conn=nothing
else
response.write"<div align=center><br><br><br><font color=red>此用户已经被删除或未通过审核!</font></div>"
response.write"<div align=center><br><br><br><b><a href=javascript:history.go(-1)>返回</a></b></div>"
end if
%>
...全文
相关推荐
树莓派安装TensorFlow所需文件(python3.7)
包括h5py,numpy,grpcio,scipy,TensorFlow2.0,python3.7.3,pycharm
numpy-1.18.2-cp37-cp37m-linux_armv7l.whl
树莓派安装tensorflow所需依赖包,numpy-1.18.2-cp37-cp37m-linux_armv7l.whl
opencv_python-4.5.3.56-cp37-cp37m-linux_armv7l.whl.zip
树莓派32位arrm7l系统配置opencv4.5.3环境
numpy-1.21.6-cp37-cp37m-linux_armv7l.whl.zip
numpy-1.21.6-cp37-cp37m-linux_armv7l.whl.zip
scipy-1.4.1-cp37-cp37m-linux_armv7l .rar
机器学习比不可少的的依赖包。基于arm,树莓派。国内镜像都是基于Windows或者linux的。官网下载速度奇慢,直接pip安装基本可以放弃,在此提供该版本,供大家学习使用。


