【黑帽SEO專用】PHP判斷用戶UA給搜索引擎和用戶展示不同頁面

      2023-10-22 未知 黑帽SEO
      【黑帽SEO專用】PHP判斷用戶UA給搜索引擎和用戶展示不同頁面

      一種黑帽SEO站群常用的SEO手段。判斷來路是搜索蜘蛛就讓蜘蛛看到全部的頁面代碼,如果判斷來路是真實的用戶則跳轉到注冊頁或者其他頁面,既能達到想要的效果,又能做良好的seo優化。
      ?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.yetiskinlerchat.com/");exit();}?以上代碼包含了各大主流搜索引擎的蜘蛛,把其中www.yetiskinlerchat.com替換為你的網址即可,這段代碼可以放在php網頁中,或者網站的頭部文件中即可。

      責任編輯:【黑帽SEO專用】PHP判斷用戶UA給搜索引擎和用戶展示不同頁面

      相關文章

      樂天SEO培訓中心

      主站蜘蛛池模板: 成人免费一区二区三区| 亚洲一区二区三区在线观看精品中文| 精品一区二区三区在线观看l | 亚洲欧美日韩国产精品一区| 亚洲AⅤ无码一区二区三区在线| 亚洲欧美国产国产一区二区三区 | 成人在线观看一区| 精品性影院一区二区三区内射 | 亚洲AV无码一区二区一二区| 91国在线啪精品一区| 精品一区二区三区在线视频观看| 亚洲另类无码一区二区三区| 国产精品香蕉在线一区| 亚洲综合一区二区国产精品| 日本成人一区二区三区| 久久久久久免费一区二区三区| 一区二区在线播放视频| 日韩一区二区三区在线精品| 国产精品美女一区二区| 国产精品电影一区二区三区| 久久蜜桃精品一区二区三区| 欧美日本精品一区二区三区 | 亚洲a∨无码一区二区| 国产吧一区在线视频| 无码少妇A片一区二区三区| 亚洲国产韩国一区二区| 亚洲制服丝袜一区二区三区| 在线观看国产一区二三区| 亚洲美女视频一区| 在线|一区二区三区四区| 国产在线观看一区二区三区四区| 国产亚洲综合一区二区三区| 日本一区二区三区在线网| 精品国产一区二区三区2021| 国产综合无码一区二区辣椒| 久久无码人妻一区二区三区午夜 | 久久精品国产一区二区三区不卡| 成人午夜视频精品一区| 亚洲AV成人一区二区三区AV| 久久久久人妻一区二区三区| 日韩色视频一区二区三区亚洲|