- Better Robots.txt Rules for WordPress – Perishable Press
- WordPress robots.txt Example – Yoast
- Disallow Robots Using Robots.txt – David Walsh
- Block or remove pages using a robots.txt file – Google
In particular, I use the following to prevent the crawling of “test” sites:
User-agent: * Disallow: /
The BETTER WAY to make sure Google does not list my “test” sites. Instead of the above-mentioned Robots.txt method, Yoast recommends adding this bit of coolness to HTAccess:
Header set X-Robots-Tag "noindex, nofollow"