This application bannes bad bots making requests for exactly non-existent urls. Middleware-level is using.
You should add patterns of this urls as LAST tuple elements in your urls.py:
from doorkeeper.views import inspect ... urlpatterns = patterns('', .... .... url(r'php',inspect), url(r'translators\.html',inspect), url(r'dba',inspect), )
You can add this constants in your settings.py:
DOORKEEPER_PATIENCE=3 # number of bad attempts DOORKEEPER_TERM=1200 # penalty time (sec.)
Add to INSTALLED_APPS,:
and to MIDDLEWARE_CLASSES (as high as possible):
You can watch your catch in django-admin.
NOTE: this application is not intendent for high-loaded django-site. Please consider os-level utilities. fail2ban should be mentioned among them.
Good luck in hunting!