This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

reusable django app to log crawlers hitting many 404 pages.

Project Description
Django Brokenlinks
==================

log brokenlinks to logfile and config fail2ban to ban crawlers hitting many 404 pages.

Requirements
------------

`django-appconf`


Installation
------------

::

$ pip install django-brokenlinks


Setup
-----

1. Add ``'brokenlinks'`` to INSTALLED_APPS
2. Add ``'brokenlinks.middleware.BrokenLinkEmailsMiddleware'`` to ``MIDDLEWARE_CLASSES``
3. Set the ``BROKENLINKS_LOG_PATH``
4. After change in brokenlinks configs run ``manage.py createbrokenlinksconfs`` once and use the result conf-files with fail2ban

your settings.py will look like below:


INSTALLED_APPS = (
# ...
'brokenlinks',
# ...
)

MIDDLEWARE_CLASSES= (
'brokenlinks.middleware.BrokenLinkEmailsMiddleware',
# ...
)

BROKENLINKS_LOG_PATH = '/path/to/brokenlinks.log'


then config fail2ban to use it


Author
-----

* w.Tayyeb
Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_brokenlinks-0.1.1-py2-none-any.whl (7.0 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Nov 20, 2016

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting