Last active
September 18, 2015 18:47
-
-
Save desmondmorris/bb5d07da92dc1005da79 to your computer and use it in GitHub Desktop.
d7-disable-robots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/robots.txt b/robots.txt | |
index ff9e286..21ea432 100644 | |
--- a/robots.txt | |
+++ b/robots.txt | |
@@ -1,57 +1 @@ | |
-# | |
-# robots.txt | |
-# | |
-# This file is to prevent the crawling and indexing of certain parts | |
-# of your site by web crawlers and spiders run by sites like Yahoo! | |
-# and Google. By telling these "robots" where not to go on your site, | |
-# you save bandwidth and server resources. | |
-# | |
-# This file will be ignored unless it is at the root of your host: | |
-# Used: http://example.com/robots.txt | |
-# Ignored: http://example.com/site/robots.txt | |
-# | |
-# For more information about the robots.txt standard, see: | |
-# http://www.robotstxt.org/robotstxt.html | |
- | |
-User-agent: * | |
-Crawl-delay: 10 | |
-# Directories | |
-Disallow: /includes/ | |
-Disallow: /misc/ | |
-Disallow: /modules/ | |
-Disallow: /profiles/ | |
-Disallow: /scripts/ | |
-Disallow: /themes/ | |
-# Files | |
-Disallow: /CHANGELOG.txt | |
-Disallow: /cron.php | |
-Disallow: /INSTALL.mysql.txt | |
-Disallow: /INSTALL.pgsql.txt | |
-Disallow: /INSTALL.sqlite.txt | |
-Disallow: /install.php | |
-Disallow: /INSTALL.txt | |
-Disallow: /LICENSE.txt | |
-Disallow: /MAINTAINERS.txt | |
-Disallow: /update.php | |
-Disallow: /UPGRADE.txt | |
-Disallow: /xmlrpc.php | |
-# Paths (clean URLs) | |
-Disallow: /admin/ | |
-Disallow: /comment/reply/ | |
-Disallow: /filter/tips/ | |
-Disallow: /node/add/ | |
-Disallow: /search/ | |
-Disallow: /user/register/ | |
-Disallow: /user/password/ | |
-Disallow: /user/login/ | |
-Disallow: /user/logout/ | |
-# Paths (no clean URLs) | |
-Disallow: /?q=admin/ | |
-Disallow: /?q=comment/reply/ | |
-Disallow: /?q=filter/tips/ | |
-Disallow: /?q=node/add/ | |
-Disallow: /?q=search/ | |
-Disallow: /?q=user/password/ | |
-Disallow: /?q=user/register/ | |
-Disallow: /?q=user/login/ | |
-Disallow: /?q=user/logout/ | |
+User-agent: * | |
+Disallow: / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment