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.

Installation

From pypi <https://pypi.python.org>

$ 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 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

django-x-robots-tag-middleware-1.3.3.tar.gz (3.2 kB view details)

Uploaded Source

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

Hashes for django-x-robots-tag-middleware-1.3.3.tar.gz
Algorithm Hash digest
SHA256 d580acbe8e9aa926582b5bdb3d858e83cd47b0938308b0a185014579a99eb5d6
MD5 112b0803c9db092f7f2150ece1438363
BLAKE2b-256 ca9d199b42db741bedbc4f6c59899067522c86e0593858c646344d8f1946cb63

See more details on using hashes here.

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

Hashes for django_x_robots_tag_middleware-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 616a5272405c9f376315c2d0807a525e165bbbb1e286c88b4450dde332efd82b
MD5 f35aaf79eefb571e7c0cfc54ae04a359
BLAKE2b-256 60e0d469c698d07922a8d2d75a634c091844a525c6f33567643b08a2a78ae3f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page