Skip to content

Commit 9fd8aa5

Browse files
alrrakcmckell
authored andcommitted
Add Disallow: to robots.txt
The addition of `Disallow:` is made in order to be compliant with: * the `robots.txt` specification (http://www.robotstxt.org/), which specifies that: "At least one Disallow field needs to be present in a record" * what is suggested in the documentation of most of the major search engines, e.g.: - Baidu: http://www.baidu.com/search/robots_english.html - Google: https://developers.google.com/webmasters/control-crawl-index/docs/getting_started http://www.youtube.com/watch?v=P7GY1fE5JQQ - Yandex: help.yandex.com/webmaster/controlling-robot/robots-txt.xml Besides the addition specified above, this commit also: * adds a comment making it clear to everyone that the directives from the `robots.txt` file allow all content on the site to be crawled * updates the URL to `www.robotstxt.org`, as `robotstxt.org` doesn't quite work: curl -LsS robotstxt.org curl: (7) Failed connect to robotstxt.org:80; Operation timed out Close h5bp#1487.
1 parent 23d1d01 commit 9fd8aa5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
### HEAD
22

3+
* Add `Disallow:` to `robots.txt`
4+
([#1487](https://github.com/h5bp/html5-boilerplate/issues/1487)).
35
* Remove default foreground color from form elements
46
([#1390](https://github.com/h5bp/html5-boilerplate/issues/1390)).
57
* Remove default margin from print styles

robots.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
# robotstxt.org/
1+
# www.robotstxt.org/
22

3+
# Allow crawling of all content
34
User-agent: *
5+
Disallow:

0 commit comments

Comments
 (0)