File tree 1 file changed +17
-0
lines changed
Filter options
1 file changed +17
-0
lines changed
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ Configuration
73
73
* :ref: `enabled <reference-csrf_protection-enabled >`
74
74
75
75
* `default_locale `_
76
+ * `disallow_search_engine_index `_
76
77
* `esi `_
77
78
78
79
* :ref: `enabled <reference-esi-enabled >`
@@ -384,6 +385,21 @@ method.
384
385
You can read more information about the default locale in
385
386
:ref: `translation-default-locale `.
386
387
388
+ disallow_search_engine_index
389
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
390
+
391
+ **type **: ``boolean `` **default **: ``true `` when the debug mode is enabled, ``false `` otherwise.
392
+
393
+ .. versionadded :: 4.3
394
+
395
+ The ``disallow_search_engine_index `` option was introduced in Symfony 4.3.
396
+
397
+ If ``true ``, Symfony adds a ``X-Robots-Tag: noindex `` HTTP tag to all responses
398
+ (unless your own app adds that header, in which case it's not modified). This
399
+ `X-Robots-Tag HTTP header `_ tells search engines to not index your web site.
400
+ This option is a protection measure in case you accidentally publish your site
401
+ in debug mode.
402
+
387
403
trusted_hosts
388
404
~~~~~~~~~~~~~
389
405
@@ -2340,3 +2356,4 @@ a :doc:`normal workflow </workflow/usage>` or a :doc:`state machine </workflow/s
2340
2356
.. _`CSRF security attacks` : https://en.wikipedia.org/wiki/Cross-site_request_forgery
2341
2357
.. _`session.sid_length PHP option` : https://php.net/manual/session.configuration.php#ini.session.sid-length
2342
2358
.. _`session.sid_bits_per_character PHP option` : https://php.net/manual/session.configuration.php#ini.session.sid-bits-per-character
2359
+ .. _`X-Robots-Tag HTTP header` : https://developers.google.com/search/reference/robots_meta_tag
You can’t perform that action at this time.
0 commit comments