2020
10-10
10-10
asp限制域名访问实现代码
asp设置只能指定域名可以使用此网站代码一自学编程网原创<%myIp=",127.0.0.1,localhost,www.jb51.net,"myurl=request.ServerVariables("SERVER_NAME")Response.writemyurlifInStr(myIp,","&myurl&",")>0thenResponse.write"域名合法"elseResponse.write"域名不合法"endif%>代码二myIp=Array("127.0.0.1","jb51")myHou=newArray("",".com")myDirect="//www.jb51.net/"ip=request.ServerVariables("HTTP_HOST")j=...
继续阅读 >