黑帽经常使用的SEO友情链接代码。近些年被一些黑色手段使用最多的SEO代码(友情链接)使用代码从语句来判断,肉眼能看到链接,可是蜘蛛来的时候就自动屏蔽了链接。同时当同行去外链查询站查的时候,同时是可以查的。呵呵,无意当中查看以前的老文档,感觉很有意思所以和大家分享一下。所以交换链接的时候大家也要小心掉。不然你就只输出没导入了。呵呵。当然也有一些破解方式。大家可以在博客留言,我们一起探讨。
<%
function GetBot()
'查询蜘蛛
dim s_agent
GetBot=""
s_agent=Request.ServerVariables("HTTP_USER_AGENT") '关键判断语句
if instr(1,s_agent,"googlebot",1) >0 then
GetBot="google"
end if
if instr(1,s_agent,"baiduspider",1) >0 then
GetBot="baidu"
end if
end function
if GetBot="baidu" or GetBot="google" then
Response.Write "蜘蛛来访去掉友情链接,嘿嘿hao123"
else
Response.Write "一般人看到了,友情链接正常显示<a target=_blank href=http://www.ggbing.com>ggbing</a>"
end if
%>
作者:闵涛 (MinTao)
微博:http://t.sina.com.cn/mintao
博客:http://www.mintao.net/blog
原载:闵涛的博客
版权所有,转载请以链接形式注明作者及原始出处。
