对于比较重视的网站相信大家都比较在意网站的收录情况,一般我们查看网站被收录了多少都是直接通过一些搜索命令来查看,苏州杰优网络本次开发的《后台自动验证文章是否被百度收录》的功能更方便的为大家统计哪些文章被百度收录哪些文章还没有被收录,使用杰优企业网站系统最新版本我们再查看列表页可以看到如下效果

为了让更多朋友使用上这样的系统,而不在因为您没有使用dedecms或者杰优企业网站系统,下面我把最核心的ASP代码贴出来,供大家参考!
<%On Error Resume Next
Server.ScriptTimeOut=9999999
Function getHTTPPage(Path)
t = GetBody(Path)
getHTTPPage=BytesToBstr(t,"GB2312")
End function
Function Newstring(wstr,strng)
Newstring=Instr(lcase(wstr),lcase(strng))
if Newstring<=0 then Newstring=Len(wstr)
End Function
Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
Function GetBody(url)
on error resume next
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Get", url, False, "", ""
.Send
GetBody = .ResponseBody
End With
Set Retrieval = Nothing
End Function
Dim wstr,str,url,start,over,dtime
a="没有"
b="与<span style="
url="http://www.baidu.com/baidu?word=http://www.szjieyou.com"
wstr=getHTTPPage(url)
start=Newstring(wstr,a)
over=Newstring(wstr,b)
body=mid(wstr,start,over-start)
if body<>"没有找到" then
response.write "有收录"
else
response.write "没有收录"
end if
%>