{"id":3624,"date":"2025-05-04T13:30:15","date_gmt":"2025-05-04T11:30:15","guid":{"rendered":"https:\/\/iconsult.agency\/blog\/?p=3624"},"modified":"2025-05-04T13:30:15","modified_gmt":"2025-05-04T11:30:15","slug":"how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt","status":"publish","type":"post","link":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/","title":{"rendered":"How to block unwanted robots in Apache and Nginx and Robots.txt"},"content":{"rendered":"<p>This is a translation of an article from Builder Society. Link to the source at the end.<\/p>\n\n\n\n<p><\/p>\n\n\n<p>To avoid sending people to my website moneyoverethics.com for the latest robots, I decided to just create a working\/updated version here. I recommend using the following browser add-ons to check if you are actually blocking the bots you want to block. \ud83d\udc47<br><\/p>\n\n\n\n<!--more-->\n\n\n<p>You can do this with the User Agent Extension:<br>for <strong>firefox:<\/strong> <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/user-agent-switcher\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/user-agent-switcher\/<\/a><br>for <strong>chrome:<\/strong> <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/user-agent-switcher-for-c\/djflhoibgkdhkhhcedjiklpkjnoahfmg\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/chrome.google.com\/webstore\/detail\/user-agent-switcher-for-c\/djflhoibgkdhkhhcedjiklpkjnoahfmg<\/a><\/p>\n\n\n<p>If you don't want to mess around with .htaccess and codes, you can use a plugin for this task.<\/p>\n\n\n<p>There are free plugins and there are paid plugins, such as Spyder Spanker.<br>You can use Link Privacy from the free ones.<br><\/p>\n\n\n<p><span class=\"has-text-color has-normal-font-size has-vivid-cyan-blue-color\" style=\"font-size: 20px\"><strong>Note.<\/strong><\/span> Don't just blindly copy these files without reviewing them and double checking to make sure you're not blocking the bots that should be climbing your site. For example, these files block 'curl', 'python', 'perl' and even 'SEMRush' - if you use bots or services blocked in these files, you are not only blocking your competitors from using these services to gather information about your domain, but you are also blocking your own attempts. I block everything!<\/p>\n\n\n\n<div class=\"gutentoc tocactive nostyle\" style=\"max-width:292px\"><div class=\"gutentoc-toc-wrap\"><div class=\"gutentoc-toc-title-wrap\"><div class=\"gutentoc-toc-title\">Table of Contents<\/div><div id=\"open\" class=\"toggletwo\">show<\/div><\/div><div id=\"toclist\"><div class=\"gutentoc-toc__list-wrap\"><ul class=\"gutentoc-toc__list\"><li><a href=\"#\u0432\u0435\u0440\u0441\u0438\u044f-\u0434\u043b\u044f-robotstxt\">Version for Robots.txt<\/a><\/li><li><a href=\"#\u0432\u0435\u0440\u0441\u0438\u044f-\u0434\u043b\u044f-httaccess-apache-\">Version for .httaccess (Apache) <\/a><\/li><li><a href=\"#\u0432\u0435\u0440\u0441\u0438\u044f-\u0434\u043b\u044f-nginxconf-nginx\">Version for nginx.conf (NGINX)<\/a><\/li><\/ul><\/div><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"\u0432\u0435\u0440\u0441\u0438\u044f-\u0434\u043b\u044f-robotstxt\" style=\"color:#3cc22b\">Version for Robots.txt<\/h2>\n\n<p>Top-level robots.txt for starters, \"good\" robots \"should\" honor this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>User-agent: AhrefsBot\nUser-agent: AhrefsSiteAudit\nUser-agent: adbeat_bot\nUser-agent: Alexibot\nUser-agent: AppEngine\nUser-agent: Aqua_Products\nUser-agent: archive.org_bot\nUser-agent: archive\nUser-agent: asterias\nUser-agent: b2w\/0.1\nUser-agent: BackDoorBot\/1.0\nUser-agent: BecomeBot\nUser-agent: BlekkoBot\nUser-agent: Blexbot\nUser-agent: BlowFish\/1.0\nUser-agent: Bookmark search tool\nUser-agent: BotALot\nUser-agent: BuiltBotTough\nUser-agent: Bullseye\/1.0\nUser-agent: BunnySlippers\nUser-agent: CCBot\nUser-agent: CheeseBot\nUser-agent: CherryPicker\nUser-agent: CherryPickerElite\/1.0\nUser-agent: CherryPickerSE\/1.0\nUser-agent: chroot\nUser-agent: Copernic\nUser-agent: CopyRightCheck\nUser-agent: cosmos\nUser-agent: Crescent\nUser-agent: Crescent Internet ToolPak HTTP OLE Control v.1.0\nUser-agent: DittoSpyder\nUser-agent: dotbot\nUser-agent: dumbot\nUser-agent: EmailCollector\nUser-agent: EmailSiphon\nUser-agent: EmailWolf\nUser-agent: Enterprise_Search\nUser-agent: Enterprise_Search\/1.0\nUser-agent: EroCrawler\nUser-agent: es\nUser-agent: exabot\nUser-agent: ExtractorPro\nUser-agent: FairAd Client\nUser-agent: Flaming AttackBot\nUser-agent: Foobot\nUser-agent: Gaisbot\nUser-agent: GetRight\/4.2\nUser-agent: gigabot\nUser-agent: grub\nUser-agent: grub-client\nUser-agent: Go-http-client\nUser-agent: Harvest\/1.5\nUser-agent: Hatena Antenna\nUser-agent: hloader\nUser-agent: http:\/\/www.SearchEngineWorld.com bot\nUser-agent: http:\/\/www.WebmasterWorld.com bot\nUser-agent: httplib\nUser-agent: humanlinks\nUser-agent: ia_archiver\nUser-agent: ia_archiver\/1.6\nUser-agent: InfoNaviRobot\nUser-agent: Iron33\/1.0.2\nUser-agent: JamesBOT\nUser-agent: JennyBot\nUser-agent: Jetbot\nUser-agent: Jetbot\/1.0\nUser-agent: Jorgee\nUser-agent: Kenjin Spider\nUser-agent: Keyword Density\/0.9\nUser-agent: larbin\nUser-agent: LexiBot\nUser-agent: libWeb\/clsHTTP\nUser-agent: LinkextractorPro\nUser-agent: LinkpadBot\nUser-agent: LinkScan\/8.1a Unix\nUser-agent: LinkWalker\nUser-agent: LNSpiderguy\nUser-agent: looksmart\nUser-agent: lwp-trivial\nUser-agent: lwp-trivial\/1.34\nUser-agent: Mata Hari\nUser-agent: Megalodon\nUser-agent: Microsoft URL Control\nUser-agent: Microsoft URL Control - 5.01.4511\nUser-agent: Microsoft URL Control - 6.00.8169\nUser-agent: MIIxpc\nUser-agent: MIIxpc\/4.2\nUser-agent: Mister PiX\nUser-agent: MJ12bot\nUser-agent: moget\nUser-agent: moget\/2.1\nUser-agent: mozilla\nUser-agent: Mozilla\nUser-agent: mozilla\/3\nUser-agent: mozilla\/4\nUser-agent: Mozilla\/4.0 (compatible; BullsEye; Windows 95)\nUser-agent: Mozilla\/4.0 (compatible; MSIE 4.0; Windows 2000)\nUser-agent: Mozilla\/4.0 (compatible; MSIE 4.0; Windows 95)\nUser-agent: Mozilla\/4.0 (compatible; MSIE 4.0; Windows 98)\nUser-agent: Mozilla\/4.0 (compatible; MSIE 4.0; Windows NT)\nUser-agent: Mozilla\/4.0 (compatible; MSIE 4.0; Windows XP)\nUser-agent: mozilla\/5\nUser-agent: MSIECrawler\nUser-agent: naver\nUser-agent: NerdyBot\nUser-agent: NetAnts\nUser-agent: NetMechanic\nUser-agent: NICErsPRO\nUser-agent: Nutch\nUser-agent: Offline Explorer\nUser-agent: Openbot\nUser-agent: Openfind\nUser-agent: Openfind data gathere\nUser-agent: Oracle Ultra Search\nUser-agent: PerMan\nUser-agent: ProPowerBot\/2.14\nUser-agent: ProWebWalker\nUser-agent: psbot\nUser-agent: Python-urllib\nUser-agent: QueryN Metasearch\nUser-agent: Radiation Retriever 1.1\nUser-agent: RepoMonkey\nUser-agent: RepoMonkey Bait &amp; Tackle\/v1.01\nUser-agent: RMA\nUser-agent: rogerbot\nUser-agent: scooter\nUser-agent: Screaming Frog SEO Spider\nUser-agent: searchpreview\nUser-agent: SEMrushBot\nUser-agent: SemrushBot\nUser-agent: SemrushBot-SA\nUser-agent: SEOkicks-Robot\nUser-agent: SiteSnagger\nUser-agent: sootle\nUser-agent: SpankBot\nUser-agent: spanner\nUser-agent: spbot\nUser-agent: Stanford\nUser-agent: Stanford Comp Sci\nUser-agent: Stanford CompClub\nUser-agent: Stanford CompSciClub\nUser-agent: Stanford Spiderboys\nUser-agent: SurveyBot\nUser-agent: SurveyBot_IgnoreIP\nUser-agent: suzuran\nUser-agent: Szukacz\/1.4\nUser-agent: Szukacz\/1.4\nUser-agent: Teleport\nUser-agent: TeleportPro\nUser-agent: Telesoft\nUser-agent: Teoma\nUser-agent: The Intraformant\nUser-agent: TheNomad\nUser-agent: toCrawl\/UrlDispatcher\nUser-agent: True_Robot\nUser-agent: True_Robot\/1.0\nUser-agent: turingos\nUser-agent: Typhoeus\nUser-agent: URL Control\nUser-agent: URL_Spider_Pro\nUser-agent: URLy Warning\nUser-agent: VCI\nUser-agent: VCI WebViewer VCI WebViewer Win32\nUser-agent: Web Image Collector\nUser-agent: WebAuto\nUser-agent: WebBandit\nUser-agent: WebBandit\/3.50\nUser-agent: WebCopier\nUser-agent: WebEnhancer\nUser-agent: WebmasterWorld Extractor\nUser-agent: WebmasterWorldForumBot\nUser-agent: WebSauger\nUser-agent: Website Quester\nUser-agent: Webster Pro\nUser-agent: WebStripper\nUser-agent: WebVac\nUser-agent: WebZip\nUser-agent: WebZip\/4.0\nUser-agent: Wget\nUser-agent: Wget\/1.5.3\nUser-agent: Wget\/1.6\nUser-agent: WWW-Collector-E\nUser-agent: Xenu's\nUser-agent: Xenu's Link Sleuth 1.1c\nUser-agent: Zeus\nUser-agent: Zeus 32297 Webster Pro V2.9 Win32\nUser-agent: Zeus Link Scout\nDisallow: \/<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<p><strong>Note<\/strong>. Some people think that copying these files will create traces<em>(links by which I can track copypasta between sites - iConsult Agency note<\/em>), but I don't know, and I'll never be able to get a straight answer as to who checks and compares these robots.txt files across billions of domains, and I still haven't found any software that bothers to do it, so... \u00af\\_(\u30c4)_\/\u00af .<\/p>\n\n\n<p>I'd be more worried about Google being able to read your gmail when you're emailing back and forth with PBN providers or some client of your PBN provider is using gmail and now Google can connect the dots.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"\u0432\u0435\u0440\u0441\u0438\u044f-\u0434\u043b\u044f-httaccess-apache-\" style=\"color:#3cc22b\">Version for .httaccess (Apache)<\/h2>\n\n<p>Classic version of Apache<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RewriteEngine On\nRewriteCond %{REQUEST_URI} !\/robots.txt$\nRewriteCond %{HTTP_USER_AGENT} ^$ &#091;OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*EventMachine.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*NerdyBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Typhoeus.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*archive.org_bot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*archive.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*adbeat_bot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*github.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*chroot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Jorgee.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Go\\ 1.1\\ package.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Go-http-client.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Copyscape.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*semrushbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*semrushbot-sa.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*JamesBOT.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SEOkicks-Robot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*LinkpadBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*getty.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*picscout.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*AppEngine.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Zend_Http_Client.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*BlackWidow.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*openlink.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*spbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Nutch.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Jetbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebVac.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Stanford.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*scooter.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*naver.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*dumbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Hatena\\ Antenna.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*grub.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*looksmart.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebZip.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*larbin.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*b2w\/0.1.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Copernic.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*psbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Python-urllib.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*NetMechanic.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*URL_Spider_Pro.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*CherryPicker.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*ExtractorPro.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*CopyRightCheck.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Crescent.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*CCBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SiteSnagger.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*ProWebWalker.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*CheeseBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*LNSpiderguy.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*EmailCollector.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*EmailSiphon.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebBandit.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*EmailWolf.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*ia_archiver.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Alexibot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Teleport.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*MIIxpc.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Telesoft.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Website\\ Quester.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*moget.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebStripper.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebSauger.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebCopier.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*NetAnts.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Mister\\ PiX.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebAuto.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*TheNomad.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WWW-Collector-E.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*RMA.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*libWeb\/clsHTTP.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*asterias.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*httplib.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*turingos.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*spanner.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Harvest.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*InfoNaviRobot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Bullseye.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebBandit.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*NICErsPRO.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Microsoft\\ URL\\ Control.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*DittoSpyder.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Foobot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebmasterWorldForumBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SpankBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*BotALot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*lwp-trivial.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebmasterWorld.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*BunnySlippers.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*URLy\\ Warning.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*LinkWalker.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*cosmos.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*hloader.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*humanlinks.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*LinkextractorPro.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Offline\\ Explorer.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Mata\\ Hari.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*LexiBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Web\\ Image\\ Collector.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*woobot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*The\\ Intraformant.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*True_Robot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*BlowFish.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SearchEngineWorld.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*JennyBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*MIIxpc.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*BuiltBotTough.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*ProPowerBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*BackDoorBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*toCrawl\/UrlDispatcher.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebEnhancer.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*suzuran.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebViewer.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*VCI.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Szukacz.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*QueryN.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Openfind.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Openbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Webster.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*EroCrawler.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*LinkScan.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Keyword.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Kenjin.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Iron33.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Bookmark\\ search\\ tool.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*GetRight.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*FairAd\\ Client.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Gaisbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Aqua_Products.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Radiation\\ Retriever\\ 1.1.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Flaming\\ AttackBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Oracle\\ Ultra\\ Search.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*MSIECrawler.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*PerMan.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*searchpreview.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*sootle.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Enterprise_Search.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Bot\\ mailto:craftbot@yahoo.com.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*ChinaClaw.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Custo.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*DISCo.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Download\\ Demon.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*eCatch.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*EirGrabber.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*EmailSiphon.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*EmailWolf.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Express\\ WebPictures.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*ExtractorPro.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*EyeNetIE.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*FlashGet.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*GetRight.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*GetWeb!.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Go!Zilla.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Go-Ahead-Got-It.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*GrabNet.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Grafula.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*HMView.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*HTTrack.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Image\\ Stripper.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Image\\ Sucker.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Indy\\ Library.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*InterGET.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Internet\\ Ninja.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*JetCar.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*JOC\\ Web\\ Spider.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*larbin.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*LeechFTP.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Mass\\ Downloader.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*MIDown\\ tool.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Mister\\ PiX.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Navroad.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*NearSite.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*NetAnts.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*NetSpider.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Net\\ Vampire.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*NetZIP.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Octopus.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Offline\\ Explorer.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Offline\\ Navigator.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*PageGrabber.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Papa\\ Foto.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*pavuk.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*pcBrowser.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*RealDownload.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*ReGet.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SiteSnagger.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SmartDownload.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SuperBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SuperHTTP.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Surfbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*tAkeOut.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Teleport\\ Pro.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*VoidEYE.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Web\\ Image\\ Collector.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Web\\ Sucker.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebAuto.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebCopier.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebFetch.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebGo\\ IS.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebLeacher.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebReaper.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebSauger.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*wesee.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Website\\ eXtractor.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Website\\ Quester.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebStripper.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebWhacker.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebZIP.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Wget.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Widow.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WWWOFFLE.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Xaldon\\ WebSpider.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Zeus.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Semrush.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*BecomeBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Screaming.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Screaming\\ FrogSEO.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SEO.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*AhrefsBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*AhrefsSiteAudit.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*MJ12bot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*rogerbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*exabot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Xenu.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*dotbot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*gigabot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Twengabot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*htmlparser.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*libwww.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Python.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*perl.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*urllib.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*scan.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Curl.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*email.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*PycURL.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*Pyth.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*PyQ.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebCollector.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*WebCopy.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*webcraw.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SurveyBot.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*SurveyBot_IgnoreIP.*$ &#091;NC,OR]\nRewriteCond %{HTTP_USER_AGENT} ^.*BlekkoBot.*$ &#091;NC]\nRewriteRule ^.*.* http:\/\/www.google.com\/ &#091;L]<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n<p class=\"has-pale-pink-color has-text-color\"><strong>Note<\/strong>. My code redirects to google.com so it renders the correct html page, and there's a bad bot \u00af\\_(\u30c4)_\/\u00af LOL doing it. In very old versions, I had a redirect to webmd.com (so everything related to webmd.com came from me), but that's because I was working in healthcare at the time.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"\u0432\u0435\u0440\u0441\u0438\u044f-\u0434\u043b\u044f-nginxconf-nginx\" style=\"color:#3cc22b\">Version for nginx.conf (NGINX)<\/h2>\n\n\n<p><\/p>\n\n\n<p>Inside the http block (nginx.conf)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http {\nmap $http_user_agent $limit_bots {\n     default 0;\n     ~*(adbeat_bot|ahrefsbot|ahrefssiteaudit|alexibot|appengine|aqua_products|archive.org_bot|archive|asterias|attackbot|b2w|backdoorbot|becomebot|blackwidow|blekkobot) 1;\n     ~*(blowfish|botalot|builtbottough|bullseye|bunnyslippers|ccbot|cheesebot|cherrypicker|chinaclaw|chroot|clshttp|collector) 1;\n     ~*(control|copernic|copyrightcheck|copyscape|cosmos|craftbot|crescent|curl|custo|demon) 1;\n     ~*(disco|dittospyder|dotbot|download|downloader|dumbot|ecatch|eirgrabber|email|emailcollector) 1;\n     ~*(emailsiphon|emailwolf|enterprise_search|erocrawler|eventmachine|exabot|express|extractor|extractorpro|eyenetie) 1;\n     ~*(fairad|flaming|flashget|foobot|foto|gaisbot|getright|getty|getweb!|gigabot) 1;\n     ~*(github|go!zilla|go-ahead-got-it|go-http-client|grabnet|grafula|grub|hari|harvest|hatena|antenna|hloader) 1;\n     ~*(hmview|htmlparser|httplib|httrack|humanlinks|ia_archiver|indy|infonavirobot|interget|intraformant) 1;\n     ~*(iron33|jamesbot|jennybot|jetbot|jetcar|joc|jorgee|kenjin|keyword|larbin|leechftp) 1;\n     ~*(lexibot|library|libweb|libwww|linkextractorpro|linkpadbot|linkscan|linkwalker|lnspiderguy|looksmart) 1;\n     ~*(lwp-trivial|mass|mata|midown|miixpc|mister|mj12bot|moget|msiecrawler|naver) 1;\n     ~*(navroad|nearsite|nerdybot|netants|netmechanic|netspider|netzip|nicerspro|ninja|nutch) 1;\n     ~*(octopus|offline|openbot|openfind|openlink|pagegrabber|papa|pavuk|pcbrowser|perl) 1;\n     ~*(perman|picscout|propowerbot|prowebwalker|psbot|pycurl|pyq|pyth|python) 1;\n     ~*(python-urllib|queryn|quester|radiation|realdownload|reget|retriever|rma|rogerbot|scan|screaming|frog|seo) 1;\n     ~*(scooter|searchengineworld|searchpreview|semrush|semrushbot|semrushbot-sa|seokicks-robot|sitesnagger|smartdownload|sootle) 1;\n     ~*(spankbot|spanner|spbot|spider|stanford|stripper|sucker|superbot|superhttp|surfbot|surveybot) 1;\n     ~*(suzuran|szukacz|takeout|teleport|telesoft|thenomad|tocrawl|tool|true_robot|turingos) 1;\n     ~*(twengabot|typhoeus|url_spider_pro|urldispatcher|urllib|urly|vampire|vci|voideye|warning) 1;\n     ~*(webauto|webbandit|webcollector|webcopier|webcopy|webcraw|webenhancer|webfetch|webgo|webleacher) 1;\n     ~*(webmasterworld|webmasterworldforumbot|webpictures|webreaper|websauger|webspider|webster|webstripper|webvac|webviewer) 1;\n     ~*(webwhacker|webzip|webzip|wesee|wget|widow|woobot|www-collector-e|wwwoffle|xenu) 1;\n}\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<p>Inside each server block (in your example.com file inside the folder accessible to sites)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\nlocation \/ {\n#blocks blank user_agents\nif ($http_user_agent = \"\") { return  301 $scheme:\/\/www.google.com\/; }\n\n  if ($limit_bots = 1) {\n  return  301 $scheme:\/\/www.google.com\/;\n  }\n}\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<p>If you have any questions, check out the <a href=\"https:\/\/www.buildersociety.com\/threads\/block-unwanted-bots-on-apache-nginx-constantly-updated.1898\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">original forum thread<\/a>. It is updated regularly.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a translation of an article from Builder Society. Link to the source at the end. To avoid sending people to my website moneyoverethics.com for the latest robots, I decided to just create a working\/updated version here. I recommend using the following browser add-ons to check if you are actually blocking the bots you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[473,482],"tags":[598,668],"class_list":["post-3624","post","type-post","status-publish","format-standard","hentry","category-instructions","category-seo","tag-robots","tag-technical-optimization"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to block unwanted robots in Apache and Nginx and Robots.txt - \u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency<\/title>\n<meta name=\"description\" content=\"Ready lists of all search engine bots and SEO services to block in Apache and Nginx.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to block unwanted robots in Apache and Nginx and Robots.txt - \u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency\" \/>\n<meta property=\"og:description\" content=\"Ready lists of all search engine bots and SEO services to block in Apache and Nginx.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/iConsult.Agency\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-04T11:30:15+00:00\" \/>\n<meta name=\"author\" content=\"Konstantin Ryabenko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@kostyll\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"Konstantin Ryabenko\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 \u043c\u0438\u043d\u0443\u0442\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/\"},\"author\":{\"name\":\"Konstantin Ryabenko\",\"@id\":\"https:\/\/iconsult.agency\/blog\/#\/schema\/person\/3b3a7f9bd1b5234273ea31683fb4b33f\"},\"headline\":\"How to block unwanted robots in Apache and Nginx and Robots.txt\",\"datePublished\":\"2025-05-04T11:30:15+00:00\",\"dateModified\":\"2025-05-04T11:30:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/\"},\"wordCount\":455,\"commentCount\":11,\"publisher\":{\"@id\":\"https:\/\/iconsult.agency\/blog\/#organization\"},\"keywords\":[\"robots\",\"technical optimization\"],\"articleSection\":[\"Instructions.\",\"SEO\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/\",\"url\":\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/\",\"name\":\"How to block unwanted robots in Apache and Nginx and Robots.txt - \u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency\",\"isPartOf\":{\"@id\":\"https:\/\/iconsult.agency\/blog\/#website\"},\"datePublished\":\"2025-05-04T11:30:15+00:00\",\"dateModified\":\"2025-05-04T11:30:15+00:00\",\"description\":\"Ready lists of all search engine bots and SEO services to block in Apache and Nginx.\",\"breadcrumb\":{\"@id\":\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/iconsult.agency\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to block unwanted robots in Apache and Nginx and Robots.txt\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/iconsult.agency\/blog\/#website\",\"url\":\"https:\/\/iconsult.agency\/blog\/\",\"name\":\"\u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency\",\"description\":\"\u0411\u043b\u043e\u0433 \u043e \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438 \u0441\u0430\u0439\u0442\u043e\u0432 (SEO) \u0438 \u0432\u0435\u0431-\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0435\",\"publisher\":{\"@id\":\"https:\/\/iconsult.agency\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/iconsult.agency\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/iconsult.agency\/blog\/#organization\",\"name\":\"iConsult Agency\",\"url\":\"https:\/\/iconsult.agency\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/iconsult.agency\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/iconsult.agency\/blog\/wp-content\/uploads\/2020\/03\/logo_dark.png\",\"contentUrl\":\"https:\/\/iconsult.agency\/blog\/wp-content\/uploads\/2020\/03\/logo_dark.png\",\"width\":100,\"height\":62,\"caption\":\"iConsult Agency\"},\"image\":{\"@id\":\"https:\/\/iconsult.agency\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/iConsult.Agency\/\",\"https:\/\/www.instagram.com\/_iconsult_\/\",\"https:\/\/www.linkedin.com\/company\/iconsult-agency\/\",\"https:\/\/www.youtube.com\/channel\/UCZeb3oR03SIY5uJc0EJ6guA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/iconsult.agency\/blog\/#\/schema\/person\/3b3a7f9bd1b5234273ea31683fb4b33f\",\"name\":\"Konstantin Ryabenko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/iconsult.agency\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/iconsult.agency\/blog\/wp-content\/uploads\/2020\/03\/ceo.png\",\"contentUrl\":\"https:\/\/iconsult.agency\/blog\/wp-content\/uploads\/2020\/03\/ceo.png\",\"caption\":\"Konstantin Ryabenko\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ryabenko\/\",\"https:\/\/x.com\/kostyll\"],\"url\":\"https:\/\/iconsult.agency\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to block unwanted robots in Apache and Nginx and Robots.txt - \u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency","description":"Ready lists of all search engine bots and SEO services to block in Apache and Nginx.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/","og_locale":"ru_RU","og_type":"article","og_title":"How to block unwanted robots in Apache and Nginx and Robots.txt - \u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency","og_description":"Ready lists of all search engine bots and SEO services to block in Apache and Nginx.","og_url":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/","og_site_name":"\u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency","article_publisher":"https:\/\/www.facebook.com\/iConsult.Agency\/","article_published_time":"2025-05-04T11:30:15+00:00","author":"Konstantin Ryabenko","twitter_card":"summary_large_image","twitter_creator":"@kostyll","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"Konstantin Ryabenko","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"15 \u043c\u0438\u043d\u0443\u0442"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/#article","isPartOf":{"@id":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/"},"author":{"name":"Konstantin Ryabenko","@id":"https:\/\/iconsult.agency\/blog\/#\/schema\/person\/3b3a7f9bd1b5234273ea31683fb4b33f"},"headline":"How to block unwanted robots in Apache and Nginx and Robots.txt","datePublished":"2025-05-04T11:30:15+00:00","dateModified":"2025-05-04T11:30:15+00:00","mainEntityOfPage":{"@id":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/"},"wordCount":455,"commentCount":11,"publisher":{"@id":"https:\/\/iconsult.agency\/blog\/#organization"},"keywords":["robots","technical optimization"],"articleSection":["Instructions.","SEO"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/","url":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/","name":"How to block unwanted robots in Apache and Nginx and Robots.txt - \u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency","isPartOf":{"@id":"https:\/\/iconsult.agency\/blog\/#website"},"datePublished":"2025-05-04T11:30:15+00:00","dateModified":"2025-05-04T11:30:15+00:00","description":"Ready lists of all search engine bots and SEO services to block in Apache and Nginx.","breadcrumb":{"@id":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iconsult.agency\/blog\/en\/how-to-block-unwanted-robots-in-apache-and-nginx-and-robots-txt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/iconsult.agency\/blog\/"},{"@type":"ListItem","position":2,"name":"How to block unwanted robots in Apache and Nginx and Robots.txt"}]},{"@type":"WebSite","@id":"https:\/\/iconsult.agency\/blog\/#website","url":"https:\/\/iconsult.agency\/blog\/","name":"\u0411\u043b\u043e\u0433 \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0435 - iConsult Agency","description":"\u0411\u043b\u043e\u0433 \u043e \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438 \u0441\u0430\u0439\u0442\u043e\u0432 (SEO) \u0438 \u0432\u0435\u0431-\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0435","publisher":{"@id":"https:\/\/iconsult.agency\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iconsult.agency\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/iconsult.agency\/blog\/#organization","name":"iConsult Agency","url":"https:\/\/iconsult.agency\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/iconsult.agency\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/iconsult.agency\/blog\/wp-content\/uploads\/2020\/03\/logo_dark.png","contentUrl":"https:\/\/iconsult.agency\/blog\/wp-content\/uploads\/2020\/03\/logo_dark.png","width":100,"height":62,"caption":"iConsult Agency"},"image":{"@id":"https:\/\/iconsult.agency\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/iConsult.Agency\/","https:\/\/www.instagram.com\/_iconsult_\/","https:\/\/www.linkedin.com\/company\/iconsult-agency\/","https:\/\/www.youtube.com\/channel\/UCZeb3oR03SIY5uJc0EJ6guA"]},{"@type":"Person","@id":"https:\/\/iconsult.agency\/blog\/#\/schema\/person\/3b3a7f9bd1b5234273ea31683fb4b33f","name":"Konstantin Ryabenko","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/iconsult.agency\/blog\/#\/schema\/person\/image\/","url":"https:\/\/iconsult.agency\/blog\/wp-content\/uploads\/2020\/03\/ceo.png","contentUrl":"https:\/\/iconsult.agency\/blog\/wp-content\/uploads\/2020\/03\/ceo.png","caption":"Konstantin Ryabenko"},"sameAs":["https:\/\/www.linkedin.com\/in\/ryabenko\/","https:\/\/x.com\/kostyll"],"url":"https:\/\/iconsult.agency\/blog\/author\/admin\/"}]}},"lang":"en","translations":{"en":3624,"ru":1301,"uk":2193},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/iconsult.agency\/blog\/wp-json\/wp\/v2\/posts\/3624"}],"collection":[{"href":"https:\/\/iconsult.agency\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iconsult.agency\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iconsult.agency\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iconsult.agency\/blog\/wp-json\/wp\/v2\/comments?post=3624"}],"version-history":[{"count":0,"href":"https:\/\/iconsult.agency\/blog\/wp-json\/wp\/v2\/posts\/3624\/revisions"}],"wp:attachment":[{"href":"https:\/\/iconsult.agency\/blog\/wp-json\/wp\/v2\/media?parent=3624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iconsult.agency\/blog\/wp-json\/wp\/v2\/categories?post=3624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iconsult.agency\/blog\/wp-json\/wp\/v2\/tags?post=3624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}