A very simple function used to detect whether the website domain name can be accessed normally. Function urlChk(sUrl)
on error resume next
Set xmlHttp = Server.CreateObject(Microsoft.XMLHTTP)
xmlHttp.open GET,sUrl,false
xmlHttp.send
if xmlHttp.Status <> 200 then
urlChk=false
else
urlChk=true
end if
End Function
sUrl=http://www.vevb.com
if urlChk(sUrl) then
response.write(sUrl&(can be accessed normally))
else
response.write(sUrl&(cannot be accessed))
end if