【黑帽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培訓中心

      主站蜘蛛池模板: 免费一区二区视频| 精品人体无码一区二区三区| 免费看无码自慰一区二区| 国产精品亚洲一区二区三区久久 | 亚洲综合无码精品一区二区三区| 亚洲国产精品一区二区三区久久| 中文字幕在线一区二区三区| 久久精品成人一区二区三区| 国产A∨国片精品一区二区| 无码国产精品一区二区免费式影视 | 成人免费一区二区三区| 亚洲AV无码一区二区三区电影| 亚洲福利精品一区二区三区| 国产精品成人免费一区二区 | 国模丽丽啪啪一区二区| 无码av免费一区二区三区| 亚洲视频在线一区二区| 一区二区免费视频| 亚洲国产精品乱码一区二区| 爱爱帝国亚洲一区二区三区 | 果冻传媒一区二区天美传媒| 精品无码一区二区三区爱欲| 亚洲一区二区三区AV无码| 亚洲美女视频一区| 国产A∨国片精品一区二区| 一区二区手机视频| 国产在线无码视频一区| 国产精品福利一区| 日本精品一区二区久久久| 在线播放精品一区二区啪视频| 成人一区二区三区视频在线观看| 日韩精品乱码AV一区二区| 国产一区二区中文字幕| 国产亚洲欧洲Aⅴ综合一区| 日本免费一区尤物| 色婷婷av一区二区三区仙踪林| 亚洲一区二区影视| 国产一区二区三区视频在线观看| 亚洲av无码天堂一区二区三区| 国产激情无码一区二区app| 久久免费视频一区|