蜘蛛池出租蜘蛛池出租

蜘蛛池網(wǎng)站收錄技術(shù)

黑帽SEO手法:PHP判斷用戶(hù)UA給搜索引擎和用戶(hù)展示不同頁(yè)面

一種黑帽常用的SEO手段

判斷來(lái)路是搜索蜘蛛就讓蜘蛛看到全部的頁(yè)面代碼,

網(wǎng)上有很多垃圾蜘蛛 直接全部屏蔽就行 蜘蛛方面 只保留 百度 搜狗 360 就可以了 其他比如 谷歌一類(lèi)的蜘蛛 爬行量 相當(dāng)大 但是沒(méi)有意義 因?yàn)閲?guó)內(nèi)的環(huán)境問(wèn)題 根本就來(lái)不了幾個(gè)流量 不劃算 不如屏蔽掉

垃圾蜘蛛列表
acoonbot ahrefsbot alexa toolbar apachebench applebot asktbfxtv blexbot chinasospider compspybot coolpadwebkit crawldaddy curl digext dotbot easouspider ec2linkfinder edisterbot elefent exabot ezooms feeddemon feedly heritrix httpclient ichiro indy library jaunty java jikespider jorgee lightdeckreports bothttp://mail.rumicrosoft url control mj12bot msnbot-media obot perl psbot purebot python python-urllib scrapy seokicks-robot siteexplorer spbot spiderman swebot swiftbot teleport teleportpro turnitinbot turnitinbot-agent universalfeedparser wangidspider wbsearchbot webdup wget wotbox wsanalyzer xbfmozilla xenu yandexbot yottaa yunguance yyspider zmeu



如果判斷來(lái)路是真實(shí)的用戶(hù)則跳轉(zhuǎn)到注冊(cè)頁(yè)或者其他頁(yè)面,既能達(dá)到想要的效果,又能做良好的seo優(yōu)化。

php
$http = false;
$http1 = $_SERVER['HTTP_USER_AGENT'];if(strpos($http1, 'Googlebot') !== false){
$http = true;} else if(strpos($http1, 'Baiduspider') >0){
$http = true;} else if(strpos($http1, 'Yahoo! Slurp') !== false){
$http = true;} else if(strpos($http1, 'msnbot') !== false){
$http = true;} else if(strpos($http1, 'Sosospider') !== false){
$http = true;} else if(strpos($http1, 'YodaoBot') !== false || strpos($http1, 'OutfoxBot') !== false){
$http = true;} else if(strpos($http1, 'Sogou web spider') !== false || strpos($http1, 'Sogou Orion spider') !== false){
$http = true;} else if(strpos($http1, 'fast-webcrawler') !== false){
$http = true;} else if(strpos($http1, 'Gaisbot') !== false){
$http = true;} else if(strpos($http1, 'ia_archiver') !== false){
$http = true;} else if(strpos($http1, 'altavista') !== false){
$http = true;} else if(strpos($http1, 'lycos_spider') !== false){
$http = true;} else if(strpos($http1, 'Inktomi slurp') !== false){
$http = true;} else if(strpos($http1, 'googlebot-mobile') !== false){
$http = true;} else if(strpos($http1, '360Spider ') !== false){
$http = true;} else if(strpos($http1, 'haosouspider') !== false){
$http = true;} else if(strpos($http1, 'Sogou News Spider') !== false){
$http = true;} else if(strpos($http1, 'YoudaoBot') !== false){
$http = true;} else if(strpos($http1, 'bingbot') !== false){
$http = true;} else if(strpos($http1, 'YisouSpider') !== false){
$http = true;} else if(strpos($http1, 'ia_archiver') !== false){
$http = true;} else if(strpos($http1, 'EasouSpider') !== false){
$http = true;} else if(strpos($http1, 'JikeSpider') !== false){
$http = true;} else if(strpos($http1, 'Sogou blog') !== false){
$http = true;}if($http == false){
header("Location: http://www.xxxxx.com/");exit();}?>

以上代碼包含了各大主流搜索引擎的蜘蛛,把其中www.xxxxxx.com替換為你的網(wǎng)址即可,這段代碼可以放在php網(wǎng)頁(yè)中,或者網(wǎng)站的頭部文件中即可。

|轉(zhuǎn)載請(qǐng)注明來(lái)源地址:蜘蛛池出租 http://www.wholesalehouseflipping.com/
專(zhuān)注于SEO培訓(xùn),快速排名黑帽SEO https://www.heimao.wiki

版權(quán)聲明:本文為 “蜘蛛池出租” 原創(chuàng)文章,轉(zhuǎn)載請(qǐng)附上原文出處鏈接及本聲明;

原文鏈接:http://www.wholesalehouseflipping.com/post/48720.html

相關(guān)文章

評(píng)論列表

發(fā)表評(píng)論:

◎歡迎參與討論,請(qǐng)?jiān)谶@里發(fā)表您的看法、交流您的觀點(diǎn)。

?    2025年11月    ?
12
3456789
10111213141516
17181920212223
24252627282930

搜索

控制面板

您好,歡迎到訪網(wǎng)站!
  查看權(quán)限

網(wǎng)站分類(lèi)

最新留言

標(biāo)簽列表

最近發(fā)表

作者列表

站點(diǎn)信息

  • 文章總數(shù):10402
  • 頁(yè)面總數(shù):3
  • 分類(lèi)總數(shù):7
  • 標(biāo)簽總數(shù):40
  • 評(píng)論總數(shù):709
  • 瀏覽總數(shù):3422313

友情鏈接

免费国产亚洲天堂AV,国产又粗又猛又黄又爽视频,亚州国产精品一线北,国产线播放免费人成视频播放