django-admin-honeypot is a fake Django admin login screen to log and notify admins of attempted unauthorized access. This app was inspired by discussion in and around Paul McMillan's security talk at DjangoCon 2011.
- Author: Derek Payton
- Version: 1.0.0
- License: MIT
http://django-admin-honeypot.readthedocs.io
Install django-admin-honeypot from PyPI:
pip install django-admin-honeypot
Add
admin_honeypot
toINSTALLED_APPS
Update your urls.py:
- ::
# If django version is lower than 2.0 urlpatterns = patterns(''
... url(r'^admin/', include('admin_honeypot.urls', namespace='admin_honeypot')), url(r'^secret/', include(admin.site.urls)),
)
# Otherwise from django.urls import path urlpatterns = [
path('admin/', include('admin_honeypot.urls', namespace='admin_honeypot')), path('secret/', admin.site.urls),
]
Run
python manage.py migrate