Skip to main content

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>_.

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

If you're not sure about the file name format, learn more about wheel file names.

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.

Release history Release notifications | RSS feed

This release

1.3.3 This release

2 files

1.3.2

2 files

1.3.1

1 file

1.3

1 file

1.2

1 file

1.1

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page