roots/bedrock-disallow-indexing
A Roots Bedrock plugin that blocks search engine indexing on non-production environments by sending noindex headers and robots directives, helping keep staging and development sites out of search results.
robots.txt / X-Robots-Tag logic.Adopt it when:
Look elsewhere when:
For executives: This is a low-cost safeguard that helps prevent staging and preproduction sites from appearing in search results. It reduces SEO, brand, and confidentiality incident risk with a small MIT-licensed dependency, and it is quick to add to Bedrock WordPress sites.
For engineering: Add it as a Composer dependency for Bedrock environments and verify that non-production responses include noindex behavior. It avoids custom crawler-blocking code, but it must be paired with SSO, VPN, IP restrictions, or other access controls because it is not a security control.
For product: Treat it as a launch-checklist and environment-governance item, not a customer-facing feature. Measure adoption through environment audits and search-console spot checks; avoid building custom logic unless platform constraints require it.
How can I help you explore Laravel packages today?