0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Prevent search engines from indexing admin pages

According to a google search I just did, it seems a lot of people have forgotten to add ``Disallow: /admin`` in their robots.txt (or forgot to add robots.txt) at all.

Adding this meta tag into the head of all admin pages should prevent any admin pages being indexed even if this was missed.
This commit is contained in:
Karl Hobley 2018-08-09 16:24:48 +01:00 committed by Matt Westcott
parent 091ea75de7
commit ebecaf6a5b
3 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Changelog
* Added support for Django 2.1 (Ryan Verner, Matt Westcott)
* Added 'scale' image filter (Oliver Wilkerson)
* Added meta tag to prevent search engines from indexing admin pages (Karl Hobley)
2.2 (xx.xx.xxx) - IN DEVELOPMENT

View File

@ -23,6 +23,7 @@ Other features
~~~~~~~~~~~~~~
* Added 'scale' image filter (Oliver Wilkerson)
* Added meta tag to prevent search engines from indexing admin pages (Karl Hobley)
Bug fixes

View File

@ -6,6 +6,7 @@
<title>Wagtail - {% block titletag %}{% endblock %}</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<script src="{% static 'wagtailadmin/js/vendor/modernizr-2.6.2.min.js' %}"></script>