Giter Site home page Giter Site logo

nocaptcha's Introduction

NoCaptcha

No bots with no CAPTCHA. Easy and fast way to secure your Django forms without using the damned, hated by everyone CAPTCHA.

Initial Actions

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 within which it is 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 field names 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's initial GET. If the form is posted in less than min_time, an error will is raised. There are a few honeypots with tempting names like "name" or "password" added to the form and hidden with display: none style. If any of them are filled, an error will be raised. The honeypots are selected from the list of honeypots in random order.

With those changes, the chance that a bot would automatically pass through your form is reduced to zero. So stop using the damned, hated by everyone CAPTCHA. Use nocaptcha.

Requirements

Django >= 1.1.1

nocaptcha's People

Contributors

gandi24 avatar smamaxs avatar

Stargazers

Jacek Rzeszutek avatar Alex Yakovlev avatar Vittorio Monaco avatar Jonathan Barratt avatar  avatar Marcin Skarbek avatar Lukasz Balcerzak avatar  avatar

Watchers

 avatar James Cloos avatar Katarzyna Kozlowska avatar

Forkers

smamaxs vince06fr

nocaptcha's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.