屏蔽Semrush、Ahrefs等恶意垃圾蜘蛛爬虫加速网站访问

admin   ·   发表于 2021-7-30   ·   SEO优化

对于SEMrush蜘蛛来说,我们感觉目前没多大用处,另考虑到占用服务器资源,我们决定屏蔽掉。另外还有几个蜘蛛根据情况来屏蔽:

1、MJ12Bot

MJ12Bot 是英国著名SEO公司Majestic的网络爬虫,其抓取网页给需要做SEO的人用,不会给网站带来流量。

2、AhrefsBot

AhrefsBot 是知名SEO公司Ahrefs的网页爬虫。其同样抓取网页给SEO专业人士用,不会给网站带来流量。

3、SEMrushBot

SEMrushBot 也是SEO、营销公司的网络爬虫。

4、DotBot

DotBot 是 Moz.com 的网页爬虫,抓取数据用来支持 Moz tools 等工具。

5、MauiBot

MauiBot 不同于其他爬虫,这个爬虫连网站都没有,UA只显示一个邮箱:”MauiBot (crawler.feedback+wc@gm ail.com)“。神奇的是这个看起来是个人爬虫,竟然遵循robots协议,算得上垃圾爬虫的一股清流。

6、MegaIndex.ru

这是一个提供反向链接查询的网站的蜘蛛,因此它爬网站主要是分析链接,并没有什么作用。遵循robots协议。

7、BLEXBot

这个是webmeup下面的蜘蛛,作用是收集网站上面的链接,对我们来说并没有用处。遵循robots协议。


首先因为这个蜘蛛爬行并不会给网站带来流量,只会占用服务器资源,其次是这是已经数据分析公司的爬虫,它爬的数据会成为你竞争对手的分析利器。

1、通过robots.txt禁止

User-agent: SemrushBot

Disallow: /

User-agent: Semrushbot-SA

Disallow: /

User-agent: Semrushbot-SI

Disallow: /

User-agent: AhrefsBot

Disallow: /

User-agent: DotBot

Disallow: /

User-agent: MegaIndex.ru

Disallow: /

User-agent: MauiBot

Disallow: /

User-agent: MJ12bot

Disallow: /

User-agent: BLEXBot

Disallow: /


2、web层面通过UA禁止

对于不遵循robots协议的爬虫,可以在web软件层面通过UA屏蔽。下面以 Nginx 为例介绍,操作为:在网站配置的server段内,新增类似如下指令:

server {

   ... 一些网站配置

   # 屏蔽curl/httpclient抓取

   if ($http_user_agent ~* curl|httpclient) {

     return 403;

   }

   # 屏蔽MauiBot等爬虫

   if ($http_user_agent ~* MauiBot|AhrefsBot|DotBot) {

     return 403;

   }

   ... 其他配置


至于一共有哪些搜索引擎爬虫或者蜘蛛,国外也进行了收集,如下

if($ http_user_agent〜*(360Spider | 80legs.com | Abonti | AcoonBot | Acunetix | adbeat_bot | AddThis.com | adixxbot | ADmantX | AhrefsBot | AngloINFO |羚羊| Applebot | BaiduSpider | BeetleBot | billigerbot | binlar | idbot | BoardReader | Bolt \ 0 | BOT \ for \ JCE | Bot \ mailto \:craftbot @ yahoo \ .com | cas​​per | CazoodleBot | CCBot | checkprivacy | ChinaClaw | chromeframe | Clerkbot | Cliqzbot | clshttp | CommonCrawler | comodo | CPython | crawler4j | Crawlera | CRAZYWEBCRAWLER | Curious | Curl | Custo | CWS_proxy | Default \ Browser \ 0 | diavol | DigExt | Digincore | DIIbot | discobot | DISCo | DoCoMo | DotBot | Download \ Demon | DTS。代理| EasouSpider | eCatch | ecxi | EirGrabber | Elmer | EmailCollector | EmailSiphon | EmailWolf | Exabot | ExaleadCloudView | ExpertSearchSpider | ExpertSearch | Express \ WebPictures | ExtractorPro | Extract | EyeNetIE | Ezooms | F2S | FastSeek | Bet | bot Flamingo_SearchEngine | FlappyBot | FlashGet | flicky | Flipboard | g00g1e | Genieo | genieo | GetRight | GetWeb \!| GigablastOpenSource | GozaikBot | Go \!Zilla | Go \ -Ahead \ -Got \ -It | GrabNet | Grafula | GrapeshotCrawler | GTB5 | GT \:\:WWW | Guzzle | harvest | heritrix | HMView | HomePageBot | HTTP \:\:Lite | HTTrack | HubSpot | ia_archiver | icarus6 | IDBot | id \ -search | IlseBot | Image \ Stripper | Image \ Sucker | Indigonet | Indy \ Library | integromedb | InterGET | InternetSeer \ .com | Internet \ Ninja | IRLbot | ISC \ Systems \ iRc \ Search \ 2 \。1 | jakarta | Java | JetCar | JobdiggerSpider | JOC \ Web \ Spider | Jooblebot |神奈川县| KINGSpider | kmccrew | larbin | LeechFTP | libwww | Lingewoud | LinkChecker | linkdexbot | LinksCrawler | LinksManager \ .com_bot | linkwalker | LinqiaRSSBlt | x || LubbersBot | lwp \ -trivial | Mail.RU_Bot | masscan | Mass \下载器| maverick | Maxthon $ | Mediatoolkitbot | MegaIndex | MegaIndex | megaindex | MFC_Tear_Sample | Microsoft \ URL \ Control | microsoft \ .url | MIDown \工具| miner | Missigua \ Locator | Mister \ PiX | mj12bot | Mozilla。* Indy | Mozilla。* NEWT | MSFrontPage | msnbot | Navroad | NearSite | NetAnts | netEstate | NetSpider | NetZIP | Net \ Vampire | NextGenSearchBot | nutch | Octopus | Offline \ Explorer | Offline \ Navigator | OpenindexSpider | OpenWebSpider | OrangeBot | Owlin | PageGrabber | PagesInventory | panopta | panscient \ .com | Papa \ Foto | pavuk | pcBrowser | PECL \:\ :: HTTP | PeoplePal | Photon | PHPCrawl | planetwork | PleaseCrawl | PNAMAIN。EXE | PodcastPartyBot |最出色的|代理| psbot | purebot | pycurl | QuerySeekerSpider | R6_CommentReader | R6_FeedFetcher | RealDownload | ReGet | Riddler | Rippers \ 0 | rogerbot | RSSingBot | rv \:1.9.1 | RyzeCrawler | SafeSearch | Screaming | SeaMonkey $ | search.goo.ne.jp | SearchmetricsBot | search_robot | SemrushBot | Semrush | SentiBot | SEOcks | SeznamBot | ShowyouBot | SightupBot | SISTRIX | sitecheck \ .internetseer \ .com | siteexplorer.info | SiteSnagger | sky Slackbot | Slurp | SmartDownload | Snoopy | Sogou | Sosospider | spaumbot | Steeler |吸盘| SuperBot | Superfeedr | SuperHTTP | SurdotlyBot | Surfbot | tAkeOut | Teleport \ Pro | TinEye-bot | TinEye | Toata \ dragostea \ mea | mea \ pentru \ Toplistbot | trendictionbot | TurnitinBot | turnit | Twitterbot | URI \:\:Fetch | urllib | Vagabondo | Vagabondo | vikspider | VoidEYE | VoilaBot | WBSearchBot | webalta | WebAuto | WebBandit | WebCollage | WebCopier | WebFetch | WebGo \ IS | WebLeacher | WebReaper | WebSauger | Website \ eXtractor | Web站点| Quester | WebStr WebZIP | Web \图像\收集器| Web \ Sucker | Wells \ Search \ II | WEP \ Search | WeSEE | Wget | Widow | WinInet | woobot | woopingbot | worldwebheritage.org | Wotbox | WPScan | WWWOFFLE | WWW \ -Mechanize | Xaldon \ WebSpider | XoviBot | yacybot | Yahoo | YandexBot | Yandex | YisouSpider | zermelo | Zeus | zh-CN | ZmEu | ZumBot | ZyBorg)){org | Wotbox | WPScan | WWWOFFLE | WWW \ -Mechanize | Xaldon \ WebSpider | XoviBot | yacybot | Yahoo | YandexBot | Yandex | YisouSpider | zermelo | Zeus | zh-CN | ZmEu | ZumBot | ZyBorg)){org | Wotbox | WPScan | WWWOFFLE | WWW \ -Mechanize | Xaldon \ WebSpider | XoviBot | yacybot | Yahoo | YandexBot | Yandex | YisouSpider | zermelo | Zeus | zh-CN | ZmEu | ZumBot | ZyBorg)){

    返回410;

}


User-agent: Semrushbot-SA

Disallow: /


User-agent: Semrushbot-SI

Disallow: /


User-agent: aipbot

Disallow: /


User-agent: ia_archiver

Disallow: /


User-agent: AhrefsBot

Disallow: /


User-agent: Alexibot 

Disallow: /


User-agent: Aqua_Products 

Disallow: /


User-agent: asterias 

Disallow: /


User-agent: b2w/0.1 

Disallow: /


User-agent: BackDoorBot/1.0 

Disallow: /


User-agent: becomebot

Disallow: /


User-agent: BlowFish/1.0 

Disallow: /


User-agent: Bookmark search tool 

Disallow: /


User-agent: BotALot 

Disallow: /


User-agent: BotRightHere 

Disallow: /


User-agent: BuiltBotTough 

Disallow: /


User-agent: Bullseye/1.0 

Disallow: /


User-agent: BunnySlippers 

Disallow: /


User-agent: CheeseBot 

Disallow: /


User-agent: CherryPicker 

Disallow: /


User-agent: CherryPickerElite/1.0 

Disallow: /


User-agent: CherryPickerSE/1.0 

Disallow: /


User-agent: Copernic 

Disallow: /


User-agent: CopyRightCheck 

Disallow: /


User-agent: cosmos 

Disallow: /


User-agent: Crescent 

Disallow: /


User-agent: Crescent Internet ToolPak HTTP OLE Control v.1.0 

Disallow: /


User-agent: DittoSpyder 

Disallow: /


User-agent: dotbot

Disallow: /


User-agent: EmailCollector 

Disallow: /


User-agent: EmailSiphon 

Disallow: /


User-agent: EmailWolf 

Disallow: /


User-agent: EroCrawler 

Disallow: /


User-agent: exabot

Disallow: /


User-agent: ExtractorPro 

Disallow: /


User-agent: FairAd Client 

Disallow: /


User-agent: Fasterfox

Disallow: /


User-agent: Flaming AttackBot 

Disallow: /


User-agent: Foobot 

Disallow: /


User-agent: gigabot

Disallow: /


User-agent: Gaisbot 

Disallow: /


User-agent: GetRight/4.2 

Disallow: /


User-agent: Harvest/1.5 

Disallow: /


User-agent: hloader 

Disallow: /


User-agent: httplib 

Disallow: /


User-agent: HTTrack 3.0 

Disallow: /


User-agent: humanlinks 

Disallow: /


User-agent: ia_archiver

Disallow: /


User-agent: IconSurf

Disallow: /

Disallow: /favicon.ico


User-agent: InfoNaviRobot 

Disallow: /


User-agent: Iron33/1.0.2 

Disallow: /


User-agent: JennyBot 

Disallow: /


User-agent: Kenjin Spider 

Disallow: /


User-agent: Keyword Density/0.9 

Disallow: /


User-agent: larbin 

Disallow: /


User-agent: LexiBot 

Disallow: /


User-agent: libWeb/clsHTTP 

Disallow: /


User-agent: LinkextractorPro 

Disallow: /


User-agent: LinkScan/8.1a Unix 

Disallow: /


User-agent: LinkWalker 

Disallow: /


User-agent: LNSpiderguy 

Disallow: /


User-agent: lwp-trivial 

Disallow: /


User-agent: lwp-trivial/1.34 

Disallow: /


User-agent: Mata Hari 

Disallow: /


User-agent: Microsoft URL Control 

Disallow: /


User-agent: Microsoft URL Control - 5.01.4511 

Disallow: /


User-agent: Microsoft URL Control - 6.00.8169 

Disallow: /


User-agent: MJ12bot

Disallow: /


User-agent: MIIxpc 

Disallow: /


User-agent: MIIxpc/4.2 

Disallow: /


User-agent: Mister PiX 

Disallow: /


User-agent: moget 

Disallow: /


User-agent: moget/2.1 

Disallow: /


User-agent: Mozilla/4.0 (compatible; BullsEye; Windows 95) 

Disallow: /


User-agent: MSIECrawler 

Disallow: /


User-agent: NetAnts 

Disallow: /


User-agent: NICErsPRO 

Disallow: /


User-agent: Offline Explorer 

Disallow: /


User-agent: Openbot 

Disallow: /


User-agent: Openfind 

Disallow: /


User-agent: Openfind data gatherer 

Disallow: /


User-agent: Oracle Ultra Search 

Disallow: /


User-agent: PerMan 

Disallow: /


User-agent: ProPowerBot/2.14 

Disallow: /


User-agent: ProWebWalker 

Disallow: /


User-agent: psbot 

Disallow: /


User-agent: Python-urllib 

Disallow: /


User-agent: QueryN Metasearch 

Disallow: /


User-agent: Radiation Retriever 1.1 

Disallow: /


User-agent: RepoMonkey 

Disallow: /


User-agent: RepoMonkey Bait & Tackle/v1.01 

Disallow: /


User-agent: RMA 

Disallow: /


User-agent: rogerbot

disallow: /


User-agent: searchpreview 

Disallow: /


User-agent: SiteSnagger 

Disallow: /


User-agent: SpankBot 

Disallow: /


User-agent: spanner 

Disallow: /


User-agent: SurveyBot

Disallow: /


User-agent: suzuran 

Disallow: /


User-agent: Szukacz/1.4 

Disallow: /


User-agent: Teleport 

Disallow: /


User-agent: TeleportPro 

Disallow: /


User-agent: Telesoft 

Disallow: /


User-agent: The Intraformant 

Disallow: /


User-agent: TheNomad 

Disallow: /


User-agent: TightTwatBot 

Disallow: /


User-agent: toCrawl/UrlDispatcher 

Disallow: /


User-agent: True_Robot 

Disallow: /


User-agent: True_Robot/1.0 

Disallow: /


User-agent: turingos 

Disallow: /


User-agent: TurnitinBot 

Disallow: /


User-agent: TurnitinBot/1.5 

Disallow: /


User-agent: URL Control 

Disallow: /


User-agent: URL_Spider_Pro 

Disallow: /


User-agent: URLy Warning 

Disallow: /


User-agent: VCI 

Disallow: /


User-agent: VCI WebViewer VCI WebViewer Win32 

Disallow: /


User-agent: Web Image Collector 

Disallow: /


User-agent: WebAuto 

Disallow: /


User-agent: WebBandit 

Disallow: /


User-agent: WebBandit/3.50 

Disallow: /


User-agent: WebCapture 2.0 

Disallow: /


User-agent: WebCopier 

Disallow: /


User-agent: WebCopier v.2.2 

Disallow: /


User-agent: WebCopier v3.2a 

Disallow: /


User-agent: WebEnhancer 

Disallow: /


User-agent: WebSauger 

Disallow: /


User-agent: Website Quester 

Disallow: /


User-agent: Webster Pro 

Disallow: /


User-agent: WebStripper 

Disallow: /


User-agent: WebZip 

Disallow: /


User-agent: WebZip 

Disallow: /


User-agent: WebZip/4.0 

Disallow: /


User-agent: WebZIP/4.21 

Disallow: /


User-agent: WebZIP/5.0 

Disallow: /


User-agent: Wget 

Disallow: /


User-agent: wget 

Disallow: /


User-agent: Wget/1.5.3 

Disallow: /


User-agent: Wget/1.6 

Disallow: /


User-agent: WWW-Collector-E 

Disallow: /


User-agent: Xenu's 

Disallow: /


User-agent: Xenu's Link Sleuth 1.1c 

Disallow: /


User-agent: Zeus 

Disallow: /


User-agent: Zeus 32297 Webster Pro V2.9 Win32 

Disallow: /


User-agent: Zeus Link Scout 

Disallow: /


User-agent: *

Disallow: /js

Disallow: *.js


0 条回复   |  直到 2021-7-30 | 1339 次浏览
登录后才可发表内容