Skip to content

Django middleware to allow googlebot to index logged-in accessible content.

License

Notifications You must be signed in to change notification settings

macropin/django-googlebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bd342ed · Dec 22, 2015

History

16 Commits
Sep 3, 2014
May 18, 2012
Dec 22, 2015
Oct 26, 2012
May 18, 2012

Repository files navigation

Django middleware to allow googlebot to index logged-in accessible content

Django Middleware to allow Googlebot access to paywalled, or login only content. This Django middleware automatically logs in Googlebot as the googlebot user.

Install

Add to your system / virtualenv:

pip install git+git://github.com/macropin/django-googlebot#egg=django-googlebot

Add to Django settings.py:

MIDDLEWARE_CLASSES = (
    ...
    'googlebot.middleware.GooglebotMiddleware',
)

Finally, create a googlebot user. This account will be used when Googlebot is automatically logged in. If you don't create an account, then one will be created automatically.

NB If you wish to disable the Google Cache feature, create a robots.txt with Noarchive . Eg:

User-agent: *
Disallow:
Noarchive: /restricted-content/

About

Django middleware to allow googlebot to index logged-in accessible content.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages