Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Make Django requests aware of the DNT header.

Project Description

Do Not Track offers an easy way to pay attention to the DNT HTTP header. If users are sending DNT: 1, DoNotTrackMiddleware will set request.DNT = True, else it will set request.DNT = False.

Just add dnt.middleware.DoNotTrackMiddleware to your MIDDLEWARE_CLASSES (Django 1.9 and earlier) or MIDDLEWARE (Django 1.10 and later) and you’re good to go.

Release History

v0.2.0 - 2017-02-17

  • Supported Django versions: 1.8, 1.9, 1.10, and 1.11
  • Supported Python versions: 2.7, 3.3, 3.4. 3.5, 3.6
  • Add “DNT” to Vary header in response (eillarra)

v0.1.0 - 2011-02-16

  • Initial Release

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.8 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Feb 17, 2017
(6.3 kB) Copy SHA256 Hash SHA256
Source None Feb 17, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers