Enables returning the X-Robots-Tag header based on Django settings.
Project description
Django X-Robots-Tag Middleware
Simple Django middleware to use the X-Robots-Tag
header based on a config param.
Installation
From pypi <https://pypi.python.org>
$ pip install django-x-robots-tag-middleware
Usage
-
Add
'x_robots_middleware.XRobotsMiddleware',
to your middleware list in settings.py. -
Add
X_ROBOTS_TAG = ['noindex','nofollow']
to your settings.py with the settings you want for the X_ROBOTS_TAG.
Details about the values for the tag and what they do can be found in the Google Documentation <https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag?hl=en#using-the-x-robots-tag-http-header>
_.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-x-robots-tag-middleware-1.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d580acbe8e9aa926582b5bdb3d858e83cd47b0938308b0a185014579a99eb5d6 |
|
MD5 | 112b0803c9db092f7f2150ece1438363 |
|
BLAKE2b-256 | ca9d199b42db741bedbc4f6c59899067522c86e0593858c646344d8f1946cb63 |
Close
Hashes for django_x_robots_tag_middleware-1.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 616a5272405c9f376315c2d0807a525e165bbbb1e286c88b4450dde332efd82b |
|
MD5 | f35aaf79eefb571e7c0cfc54ae04a359 |
|
BLAKE2b-256 | 60e0d469c698d07922a8d2d75a634c091844a525c6f33567643b08a2a78ae3f1 |