robots.txt
The easiest way to add a robots.txt
to your site is simply create
one in your /config/
directly. This file will be served as a standard
robots.txt
file when you start your site.
If you’re not able to do that, you can use a seperate file and your proxy.
For Apache the config would look like this:
nginx, more like this:
You may also add robots meta-tags to your layout_head.html.erb
to be included in the header area of your site.
example:
<meta name="robots" content="noindex, nofollow">
A sensible starting point for a robots.txt
file looks something like this: