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
File details
Details for the file django-x-robots-tag-middleware-1.3.3.tar.gz
.
File metadata
- Download URL: django-x-robots-tag-middleware-1.3.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d580acbe8e9aa926582b5bdb3d858e83cd47b0938308b0a185014579a99eb5d6 |
|
MD5 | 112b0803c9db092f7f2150ece1438363 |
|
BLAKE2b-256 | ca9d199b42db741bedbc4f6c59899067522c86e0593858c646344d8f1946cb63 |
File details
Details for the file django_x_robots_tag_middleware-1.3.3-py3-none-any.whl
.
File metadata
- Download URL: django_x_robots_tag_middleware-1.3.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 616a5272405c9f376315c2d0807a525e165bbbb1e286c88b4450dde332efd82b |
|
MD5 | f35aaf79eefb571e7c0cfc54ae04a359 |
|
BLAKE2b-256 | 60e0d469c698d07922a8d2d75a634c091844a525c6f33567643b08a2a78ae3f1 |