A fake Django admin login screen to notify admins of attempted unauthorized access.
Project description
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
toINSTALLED_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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-admin-honeypot1-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1e2a5e3365f63bb8b83cc34b1c7fdd33f50d751365b921bf2220d0858f4bb9e |
|
MD5 | 078b1583e513e10b2a76f40066e511fe |
|
BLAKE2b-256 | 9ef464d490acc91820fb2c53813530e50a07e1e71d14f06e2c005ce0aff2fbe3 |
Close
Hashes for django_admin_honeypot1-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7877e0582271aa0d2bc37603bc200875ee3f7e7560ba78624101f3f53e9acf32 |
|
MD5 | 20dae12883ccdce2cfa59f883e7f1bb0 |
|
BLAKE2b-256 | e569776066f58eb49a64a5d180bfd862eec0d3079397d57794715065ec67ba30 |