Skip to main content

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

  1. Install django-admin-honeypot from PyPI::

    pip install django-admin-honeypot
    
  2. Add admin_honeypot to INSTALLED_APPS setting like this ::

      INSTALLED_APPS = [
      ...
      'admin_honeypot',
      ]
    
  3. Update your urls.py: ::

        urlpatterns =[
    
        path('admin/', include('admin_honeypot.urls', namespace='admin_honeypot')),
        path('secret/', admin.site.urls),
        ...
        ]
    
  4. [ 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
    
  5. Run python manage.py migrate to create the LoginAttempt model

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

Release files for django-admin-honeypot1 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-admin-honeypot1 1.2.0
File Size Uploaded
django-admin-honeypot1-1.2.0.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-admin-honeypot1 1.2.0
File Interpreter ABI Platform
django_admin_honeypot1-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.3 kB

Release files / django-admin-honeypot1-1.2.0.tar.gz

Download URL django-admin-honeypot1-1.2.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a1e2a5e3365f63bb8b83cc34b1c7fdd33f50d751365b921bf2220d0858f4bb9e
BLAKE2b-256 checksum
How to use checksums
9ef464d490acc91820fb2c53813530e50a07e1e71d14f06e2c005ce0aff2fbe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / django_admin_honeypot1-1.2.0-py3-none-any.whl

Download URL django_admin_honeypot1-1.2.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7877e0582271aa0d2bc37603bc200875ee3f7e7560ba78624101f3f53e9acf32
BLAKE2b-256 checksum
How to use checksums
e569776066f58eb49a64a5d180bfd862eec0d3079397d57794715065ec67ba30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page