aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2015-01-13 09:43:24 -0200
committerAndrey Nering <andrey.nering@gmail.com>2015-01-14 19:18:47 -0200
commit2a428eda471b8a11bee0cb0afeb87f8798d01e7e (patch)
treebdcd8666a760f3e89b015f2f719403485a326f56 /guides/source/configuring.md
parentaa31d21f5f4fc4d679e74a60f9df9706da7de373 (diff)
downloadrails-2a428eda471b8a11bee0cb0afeb87f8798d01e7e.tar.gz
rails-2a428eda471b8a11bee0cb0afeb87f8798d01e7e.tar.bz2
rails-2a428eda471b8a11bee0cb0afeb87f8798d01e7e.zip
Adding 'Search Engines Indexing' Section [ci skip]
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index cc3d840271..457cec370d 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -1049,3 +1049,21 @@ These configuration points are then available through the configuration object:
Rails.configuration.x.super_debugger # => true
Rails.configuration.x.super_debugger.not_set # => nil
```
+
+Search Engines Indexing
+-----------------------
+
+Sometimes, you may want to prevent some pages of your application be visible on search sites like Google,
+Bing, Yahoo or Duck Duck Go. The robots that index these sites will first analyse the
+`https://your-site.com/robots.txt` file to know what pages it is allowed to index.
+
+Rails creates this file for you on `/public` folder. By default, it allows search engines to index all
+pages of your application. If you want to block indexing on all pages of you application, use this:
+
+```
+User-agent: *
+Disallow: /
+```
+
+To block just specific pages, it's necessary to use a more complex syntax. Learn it on the
+[official documentation](http://www.robotstxt.org/robotstxt.html).