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:
parent
091ea75de7
commit
ebecaf6a5b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user