Skip to main content

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

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-admin-honeypot1-1.2.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admin_honeypot1-1.2.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

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

Hashes for django-admin-honeypot1-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a1e2a5e3365f63bb8b83cc34b1c7fdd33f50d751365b921bf2220d0858f4bb9e
MD5 078b1583e513e10b2a76f40066e511fe
BLAKE2b-256 9ef464d490acc91820fb2c53813530e50a07e1e71d14f06e2c005ce0aff2fbe3

See more details on using hashes here.

File details

Details for the file django_admin_honeypot1-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_honeypot1-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7877e0582271aa0d2bc37603bc200875ee3f7e7560ba78624101f3f53e9acf32
MD5 20dae12883ccdce2cfa59f883e7f1bb0
BLAKE2b-256 e569776066f58eb49a64a5d180bfd862eec0d3079397d57794715065ec67ba30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page