A fake Django admin login screen.
Project description
# django-admin-honeypot
django-admin-honeypot is fake Django admin login page that logs all attempts to login in the database. The purpose is to give administrators some insight into who is attempting to gain unauthorized access to their Django-powered website.
* **Author**: [Derek Payton](http://dmpayton.com)
* **Version**: 0.1.1
* **License**: MIT
## Installation
django-admin-honeypot can be installed in any number of the usual ways:
```
easy_install django-admin-honeypot
```
```
pip install django-admin-honeypot
```
```
pip install -e git+git://github.com/dmpayton/django-admin-honeypot.git#egg=django-admin-honeypot
```
```
git clone git://github.com/dmpayton/django-admin-honeypot.git
cd django-admin-honeypot
python setup.py install
```
etc...
## Usage
* Add `admin_honeypot` to `INSTALLED_APPS`.
* Update your urls.py:
```
urlpatterns = patterns(''
...
url(r'^admin/', include('admin_honeypot.urls')),
url(r'^secret/', include(admin.site.urls)),
)
```
## Signals
`admin_honeypot.signals.honeypot` is called on every login attempt with the following arguments:
* **instance**: The LoginAttempt object created
* **request**: The current request object
## Testing
python manage.py test admin_honeypot
Currently there is a single test that submits the fake login form and checks that the data was saved to the database.
django-admin-honeypot is fake Django admin login page that logs all attempts to login in the database. The purpose is to give administrators some insight into who is attempting to gain unauthorized access to their Django-powered website.
* **Author**: [Derek Payton](http://dmpayton.com)
* **Version**: 0.1.1
* **License**: MIT
## Installation
django-admin-honeypot can be installed in any number of the usual ways:
```
easy_install django-admin-honeypot
```
```
pip install django-admin-honeypot
```
```
pip install -e git+git://github.com/dmpayton/django-admin-honeypot.git#egg=django-admin-honeypot
```
```
git clone git://github.com/dmpayton/django-admin-honeypot.git
cd django-admin-honeypot
python setup.py install
```
etc...
## Usage
* Add `admin_honeypot` to `INSTALLED_APPS`.
* Update your urls.py:
```
urlpatterns = patterns(''
...
url(r'^admin/', include('admin_honeypot.urls')),
url(r'^secret/', include(admin.site.urls)),
)
```
## Signals
`admin_honeypot.signals.honeypot` is called on every login attempt with the following arguments:
* **instance**: The LoginAttempt object created
* **request**: The current request object
## Testing
python manage.py test admin_honeypot
Currently there is a single test that submits the fake login form and checks that the data was saved to the database.
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
Close
Hashes for django-admin-honeypot-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aa085d76c6ba59e3dbf2afdfb1114a98abf8a531759468ffecdee06d7476b30 |
|
MD5 | 95608fcc124cc3bdfe0b4e987f9c1ec8 |
|
BLAKE2b-256 | ee9ce4aac3e0472ea816aa410cdff99917d3447e11d81262d2dedc85d0367dd2 |