Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Simple Django middleware to return the X-Robots-Tag header for all URLs. Useful for ensuring a site is not accidentally indexed until ready.

License

Notifications You must be signed in to change notification settings

cyface/django-x-robots-tag-middleware

Open more actions menu

Repository files navigation

Django X-Robots-Tag Middleware

PyPi Package Version Python package codecov

Simple Django middleware to send the X-Robots-Tag header to all URLs. Useful for ensuring a site in development is not accidentally picked up and indexed until it is ready.

Installation

From pypi:

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

Usage

  1. Add "x_robots_middleware.XRobotsMiddleware", to your middleware list in settings.py.

  2. Add X_ROBOTS_TAG = ["noindex", "nofollow"] to your settings.py with the values 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.

About

Simple Django middleware to return the X-Robots-Tag header for all URLs. Useful for ensuring a site is not accidentally indexed until ready.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.