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
==================
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
Metadata
Release files for django-brokenlinks 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_brokenlinks-0.1.1-py2-none-any.whl | Python 2 | none | any | Details |
Release files / django_brokenlinks-0.1.1-py2-none-any.whl
| Download URL | django_brokenlinks-0.1.1-py2-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
82dd859ea14263b20ec6d3803933d4524aee08fb66a936d00c45f2b5fdbf1859
|
|
BLAKE2b-256 checksum How to use checksums |
6c3285668753f2fb74accaaf07551c3989ed7e89c8900d72624690465453e7bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |