屏蔽垃圾seo蜘蛛
注意,屏蔽蜘蛛的规则需要放在所有伪静态规则的上方 if ( $http_user_agent ~ AhrefsBot ){ return 403; } if ( $http_user_agent ~ YandexBot ){ return 403; } if ( $http_user_agent ~ MJ12bot ){ return 403; } if ( $http_user_agent ~ DotBot ){ return 403; } if ( $http_user_agent ~ RU_Bot ){ return 403; } if ( $http_user_agent ~ Ezooms ){ return 403; } if ( $http_user_agent ~ Yeti ){ return 403; } if ( $http_user_agent ~ BLEXBot ){ return 403; } if ( $http_user_agent ~ Exabot ){ return 403; } if ( $http_user_agent ~ YisouSpider ){ return 403; } if ( $http_user_agent ~ sandcrawlerbot ){ return 403; } if ( $http_user_agent ~ ShopWiki ){ return 403; } if ( $http_user_agent ~ Genieo ){ return 403; } if ( $http_user_agent ~ Aboundex ){ return 403; } if ( $http_user_agent ~ coccoc ){ return 403; } if ( $http_user_agent ~ MegaIndex ){ return 403; } if ( $http_user_agent ~ spbot ){ return 403; } if ( $http_user_agent ~ SemrushBot ){ return 403; } if ( $http_user_agent ~ TwengaBot ){ return 403; } if ( $http_user_agent ~ SEOkicks-Robot ){ return 403; } if ( $http_user_agent ~ WordPress ){ return 403; } if ( $http_user_agent ~ BUbiNG ){ return 403; } if ( $http_user_agent ~ PetalBot ){ return 403; } if ( $http_user_agent ~ Adsbot ){ return 403; } if ( $http_user_agent ~ NetcraftSurveyAgent ){ return 403; } if ( $http_user_agent ~ Barkrowler ){ return 403; } if ( $http_user_agent ~ serpstatbot ){ return 403; } if ( $http_user_agent ~ MegaIndex.ru ){ return 403; } if ( $http_user_agent ~ DataForSeoBot ){ return 403; }
<< 上一篇
网友留言(0 条)