Staging and development sites should NEVER be indexed by search engines. A single indexed staging page can cause duplicate content penalties on your production site. This generates a complete block for all crawlers.
Developers often forget to block staging sites. Google finds them through DNS records, linked resources, or sitemap references. One robots.txt file prevents all accidental indexing.
Try It Now β Free, No Sign-up
Open the tool and get started instantly. No sign-up, no installation needed.
Open Robots.txt Generator Now100% browser-based β’ No upload to server β’ No sign-up required
How to Robots.txt for Staging & Development Sites
- Set User-agent: * (all bots)
- Set Disallow: / (blocks entire site)
- Do NOT add a sitemap URL
- Generate and upload to staging root
- Also add meta name robots content noindex as backup
Pro Tips
- Use BOTH robots.txt AND meta noindex for maximum protection
- Password-protect staging with HTTP Basic Auth as additional layer
- Remove the block when you go live β do not forget!
- Check Google Search Console for any accidentally indexed staging URLs
Frequently Asked Questions
Related Tools & Guides
Ready to Use Robots.txt Generator?
Free, instant, and 100% private. No sign-up needed.
Open Robots.txt Generator