Skip to main content

Enables returning the X-Robots-Tag header based on Django settings.

Project description

Django X-Robots-Tag Middleware

PyPi Package Version Python package codecov Scrutinizer Code Quality Documentation Status

Simple Django middleware to use the X-Robots-Tag header based on a config param.


From pypi <>

$ pip install django-x-robots-tag-middleware


  1. Add 'x_robots_middleware.XRobotsMiddleware', to your middleware list in

  2. Add X_ROBOTS_TAG = ['noindex','nofollow'] to your 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 <>_.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-x-robots-tag-middleware, version 1.3.3
Filename, size File type Python version Upload date Hashes
Filename, size django_x_robots_tag_middleware-1.3.3-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-x-robots-tag-middleware-1.3.3.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page