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_honeypottoINSTALLED_APPSsetting 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 migrateto 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-admin-honeypot1-1.2.0.tar.gz.
File metadata
- Download URL: django-admin-honeypot1-1.2.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1e2a5e3365f63bb8b83cc34b1c7fdd33f50d751365b921bf2220d0858f4bb9e
|
|
| MD5 |
078b1583e513e10b2a76f40066e511fe
|
|
| BLAKE2b-256 |
9ef464d490acc91820fb2c53813530e50a07e1e71d14f06e2c005ce0aff2fbe3
|
File details
Details for the file django_admin_honeypot1-1.2.0-py3-none-any.whl.
File metadata
- Download URL: django_admin_honeypot1-1.2.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7877e0582271aa0d2bc37603bc200875ee3f7e7560ba78624101f3f53e9acf32
|
|
| MD5 |
20dae12883ccdce2cfa59f883e7f1bb0
|
|
| BLAKE2b-256 |
e569776066f58eb49a64a5d180bfd862eec0d3079397d57794715065ec67ba30
|