-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added robotScraper to check robots.txt files
- Loading branch information
1 parent
b98be18
commit a3493d9
Showing
3 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# | ||
# 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 | ||
# CSS, JS, Images | ||
Allow: /misc/*.css$ | ||
Allow: /misc/*.css? | ||
Allow: /misc/*.js$ | ||
Allow: /misc/*.js? | ||
Allow: /misc/*.gif | ||
Allow: /misc/*.jpg | ||
Allow: /misc/*.jpeg | ||
Allow: /misc/*.png | ||
Allow: /modules/*.css$ | ||
Allow: /modules/*.css? | ||
Allow: /modules/*.js$ | ||
Allow: /modules/*.js? | ||
Allow: /modules/*.gif | ||
Allow: /modules/*.jpg | ||
Allow: /modules/*.jpeg | ||
Allow: /modules/*.png | ||
Allow: /profiles/*.css$ | ||
Allow: /profiles/*.css? | ||
Allow: /profiles/*.js$ | ||
Allow: /profiles/*.js? | ||
Allow: /profiles/*.gif | ||
Allow: /profiles/*.jpg | ||
Allow: /profiles/*.jpeg | ||
Allow: /profiles/*.png | ||
Allow: /themes/*.css$ | ||
Allow: /themes/*.css? | ||
Allow: /themes/*.js$ | ||
Allow: /themes/*.js? | ||
Allow: /themes/*.gif | ||
Allow: /themes/*.jpg | ||
Allow: /themes/*.jpeg | ||
Allow: /themes/*.png | ||
# 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/ | ||
Disallow: /?q=user/q=node/ | ||
|
||
# Disallow indexing of Node pages | ||
Disallow: /node/ | ||
Disallow: /*/node/ | ||
|
||
Disallow: /?q=node/ | ||
Disallow: /?q=*/node/ | ||
|
||
############################## | ||
# START TESLA CONTENT. | ||
############################## | ||
|
||
# Tesla content landing pages. | ||
Disallow: /content/* | ||
Disallow: /new/* | ||
Disallow: /used/* | ||
Disallow: /preowned/* | ||
Disallow: /demo/* | ||
Disallow: /taxonomy/term/* | ||
Disallow: /*/taxonomy/term/* | ||
Allow: /content/dam/tesla-site/ | ||
|
||
############################## | ||
# STOP TESLA CONTENT. | ||
############################## |