You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
For security, you can automatically add the X-Robots-Tag: noindex header in developer mode. Sometimes it happens that someone will make such a website available on the Internet. I think it would be better for search engines to not index such websites.
We already include <meta name="robots" content="noindex,nofollow" /> for anything related to the profiler ... but I think it makes sense to add X-Robots-Tag: noindex, nofollow to the entire site if it's being run in dev environment. Anyone see any potential drawback?
…applications (GaryPEGEOT)
This PR was squashed before being merged into the 4.3-dev branch (closes#30325).
Discussion
----------
[HttpKernel] Prevent search engines from indexing dev applications
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #30318
| License | MIT
| Doc PR | TODO
Add the *X-Robots-Tag: noindex* to dev (and test) applications to prevent search engines to index them.
Commits
-------
3dd8671 [HttpKernel] Prevent search engines from indexing dev applications
Description
For security, you can automatically add the X-Robots-Tag: noindex header in developer mode. Sometimes it happens that someone will make such a website available on the Internet. I think it would be better for search engines to not index such websites.
Robots meta tag and X-Robots-Tag HTTP header specifications
The text was updated successfully, but these errors were encountered: