No bots with no captcha in Django forms.
Project description
No bots with no captcha. Easy and fast way to secure your django forms with no using of damned, hated by everyone captcha.
INITIAL ACCTIONS
Include nocaptcha in your settings’ installed apps
- INSTALLED_APPS = (
… ‘nocaptcha’, … )
TYPICAL USAGE
Include nocaptcha in your form. Add secret password, that would be used in md5 hash and min_time value - the shortest time, that could be possible to fill your form.
from nocaptcha.forms import NoCaptchaForm
- class ContactForm(NoCaptchaForm, forms.Form):
secret_password = “NoCaptcha rocks!” min_time = 5 name = forms.CharField(label=”Name”) message = forms.CharField(label=”Message”, widget=forms.Textarea)
BENEFITS
From now on all the fieldnames in your form will be encoded into a md5(timestamp + fieldname + secret_password). The timestamp field will be created with the timestamp of the page initial get. If the form will be posted in less then min_time, the error will be raised. There will be added a few honeypots with tempting names like “name” or “password” hidden with “display: none” style. If any of them will be filled, the error will be raised. The honeypots are taken as sample from list of honeypots and their order is shuffled.
With these changes, the chance that any bot would automatically pass through your form is minimaised to zero. So stop using tha damn, hated by everyone captcha. Use nocaptcha.
REQUIREMENTS
Django >= 1.1.1
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
File details
Details for the file nocaptcha-0.3.tar.gz
.
File metadata
- Download URL: nocaptcha-0.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c434a89c7e63e884a9b6ca04a6287aca8abd0482eea2ab5b49cc54ef4e607cdc |
|
MD5 | c5feff946393c44b6913ae4372f98649 |
|
BLAKE2b-256 | a1b0e5b3b8eb1b803b762d43ca79dc107463e319759cd303e7b2eb4dda826eec |