From a94b9201c006568be33fb2375d86c9ef4c65ff7f Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 13 Mar 2019 11:12:46 +0100 Subject: [PATCH] Document the disallow_search_engine_index option --- reference/configuration/framework.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index ccb6a344ef5..a01018268ae 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -73,6 +73,7 @@ Configuration * :ref:`enabled ` * `default_locale`_ +* `disallow_search_engine_index`_ * `esi`_ * :ref:`enabled ` @@ -384,6 +385,21 @@ method. You can read more information about the default locale in :ref:`translation-default-locale`. +disallow_search_engine_index +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +**type**: ``boolean`` **default**: ``true`` when the debug mode is enabled, ``false`` otherwise. + +.. versionadded:: 4.3 + + The ``disallow_search_engine_index`` option was introduced in Symfony 4.3. + +If ``true``, Symfony adds a ``X-Robots-Tag: noindex`` HTTP tag to all responses +(unless your own app adds that header, in which case it's not modified). This +`X-Robots-Tag HTTP header`_ tells search engines to not index your web site. +This option is a protection measure in case you accidentally publish your site +in debug mode. + trusted_hosts ~~~~~~~~~~~~~ @@ -2340,3 +2356,4 @@ a :doc:`normal workflow ` or a :doc:`state machine