django-admin-honeypot1 1.2.0

Creator: danarutscher

Last updated:

Add to Cart

Description:

djangoadminhoneypot1 1.2.0

django-admin-honeypot-2
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 _
Contributor: Kalyaan Singh
Version: 1.2.0
License: MIT

Documentation
http://django-admin-honeypot.readthedocs.io
tl;dr


Install django-admin-honeypot from PyPI::
pip install django-admin-honeypot



Add admin_honeypot to INSTALLED_APPS setting like this
::
INSTALLED_APPS = [
...
'admin_honeypot',
]



Update your urls.py:
::
urlpatterns =[

path('admin/', include('admin_honeypot.urls', namespace='admin_honeypot')),
path('secret/', admin.site.urls),
...
]



[ Optional ] In settings.py:
::
# To receive email notifications regarding attempts to login to the admin honeypot.

# Admin's name and email to send email
ADMINS = (
(admin_name, admin_email_addrress)
)

# SMTP CONFIGURATION
EMAIL_HOST = smtp.gmail.com
EMAIL_PORT = 587
EMAIL_HOST_USER = admin_email_addrress
EMAIL_HOST_PASSWORD = admin_email_addrress_password
EMAIL_USE_TLS = True



Run python manage.py migrate to create the LoginAttempt model


NOTE: replace secret in the url above with your own secret url prefix

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.