Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.887.490 Times

django-honeypot 0.1.2

Company: James Turk
Date Added: September 08, 2013  |  Visits: 226

django-honeypot

Report Broken Link
Printer Friendly Version


Product Homepage
Download (19 downloads)



Django honeypot field utilities<br /><br />django-honeypot is a Django plugin that provides utilities for preventing automated form spam.<br /><br />Provides template tags, view decorators, and middleware to add and verify honeypot fields to forms.<br /><br />Installation<br /><br />To install run<br /><br /> python setup.py install<br /><br />which will install the application into the site-packages directory.<br /><br />Usage<br /><br />settings.py<br /><br />Be sure to add honeypot to INSTALLED_APPS in settings.py.<br /><br />You will almost always need to define HONEYPOT_FIELD_NAME which is the name to use for the honeypot field. Some sophisticated bots will attempt to avoid fields named honeypot, so it may be wise to name the field something slightly more realistic such as "phonenumber" or "body2".<br /><br />HONEYPOT_VALUE is an option that you can specify to populate the honeypot field, by default the honeypot field will be empty and any text entered into it will result in a failed POST. HONEYPOT_VALUE can be a string or a callable that takes no arguments.<br /><br />HONEYPOT_VERIFIER is an advanced option that you can specify to validate the honeypot. The default verifier ensures that the contents of the honeypot field matches HONEYPOT_VALUE. Using a combination of a callable for HONEYPOT_VALUE and HONEYPOT_VERIFIER it is possible to implement a more advanced technique such as using timestamps.<br /><br />Adding honeypot fields to specific forms and views<br /><br />It is possible to add honeypot fields to specific forms and ensure that specific views check for a valid honeypotin request.POST. This can be accomplished by using the render_honeypot_field template tag:<br /><br />At the top of a template file include the line:<br /><br />{% load honeypot %}<br /><br />And then within any form including the tag:<br /><br />{% render_honeypot_field "field_name" %}<br /><br />will render a honeypot field named "field_name" that is hidden by default. The name of the honeypot field will default to HONEYPOT_FIELD_NAME if one is not provided.<br /><br />To ensure that the honeypot field is both present and correct you will need to use check_honeypot decorator from honeypot.decorators:<br /><br />from honeypot.decorators import check_honeypot<br /><br />@check_honeypot('field_name')<br />def post_comment(request):<br /> ...<br /><br />@check_honeypot<br />def other_post_view(request):<br /> ...<br /><br />This decorator will ensure that a field exists in request.POST that is named 'field_name'. @check_honeypot without arguments will use the default HONEYPOT_FIELD_NAME.<br /><br />Adding honeypot fields site-wide<br /><br />Sometimes it is desirable to add honeypots to all forms site-wide. This is particularly useful when dealing with apps that render their own forms. For this purpose three middlewares are provided, similar in functionality to django's own CSRF middleware.<br /><br />All of these middleware live in honeypot.middleware.<br /><br />HoneypotResponseMiddleware analyzes the output of all responses and rewrites any forms that use method="POST" to contain a honeypot field, just as if they had started with {% render_honeypot_field %}. Borrowing heavily from django.contrib.csrf.middleware.CsrfResponseMiddleware this middleware only rewrites responses with Content-Type text/html or application/xhtml+xml.<br /><br />HoneypotViewMiddleware ensures that for all incoming POST requests to views request.POST contains a valid honeypot field as defined by the HONEYPOT_FIELD_NAME, HONEYPOT_VALUE, and HONEYPOT_VERIFIER settings. The result is the same as if every view in your project were decorated with @check_honeypot.<br /><br />HoneypotMiddleware is a combined middleware that applies both HoneypotResponseMiddleware and HoneypotViewMiddleware, this is the easiest way to get honeypot fields site-wide and can be used in many if not most cases.<br /><br />Requirements:<br /><br />?*A* Python<br />?*A* Django<br />

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Check Honeypot Decorators Default Django Ensure Field Fields Forms Honeypot Honeypot Field Honeypot Verifier Middleware Named Post Quot Render Honeypot Field Requestpost Result Rewrites Specific Template Verifier View
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


DJANGO-HONEYPOT RELATED
Modules  -  CCK Private Fields 6.x-1.1
* The field settings screen provides a new option to enable privacy options for fields. This option is global and affects all content types where the given field is shared. The default privacy status can be specified. * This module supports all...
30.72 KB  
Network & Internet  -  django-admin-honeypot 0.2.1
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.
10.24 KB  
Modules  -  Flexi Contact 3.12
We always need an enquiry page, with a few customisable fields. Could we find a simple one? No! So here it is. It is flexible and incredibly simple to setup: Just install it, create a menu item of type FlexiContact, and choose your options. *...
10 KB  
Modules  -  CK Field Definitions 6.x-1.1
Note: Since the inclusion of CCK functionality into Drupal 7 core under the Field API, the Drupal 7 version of this module will be part of the Field definitions project. It features a slightly refactored code base and integration with the Field...
10 KB  
Modules  -  Autocomplete Node Finder 6.x-1.1/5.x-2.1 1.0
Unique fields for each node works best, like the node title or a cck field.InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building > Modules. Requirements: - Drupal 5.x/6.x What's New...
 
Network & Internet  -  django-admin-tools 0.2.0
django-admin-tools is a collection of plugins/extensions for the default Django administration interface, it includes: * a full featured and customizable dashboard, * a customizable menu bar, * tools to make admin theming...
706.56 KB  
Modules  -  Field formatter settings 7.x-1.0-beta1
The Field API in Drupal core lacks the ability for other modules to easily alter field formatter settings forms and the formatter summaries. This module is a small API provider for other modules since it's too late to get the hooks into core (see...
102.4 KB  
Networking  -  Ambrosite Next/Previous Post Link Plus 2.3
This plugin creates two new template tags (next_post_link_plus and previous_post_link_plus) which are upgraded versions of the core WordPress next/previous post link template tags. The new tags include all of the functionality of the core tags,...
10 KB  
Education  -  GRMagNeto 1.0
GRMagNeto allows the measurement of the natural magnetic field or created with some magnets. A vector indicating the direction of the magnetic field combined with a sound device for operating the three axes available. A threshold limit...
307.2 KB  
Lifestyle  -  Movreak 2.0.0.7
Movreak is what movie freaks need. You can use it to view and share movies' show time and place. You can browse now-playing movies, check the show time & places, and share to your friends by tweet it to Twitter or post on Facebook. Or rather, if...
2 MB  
NEW DOWNLOADS IN LINUX SOFTWARE, UTILITIES
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Utilities  -  LPAR2RRD 4.95-4
LPAR2RRD collects performance data and generates actual, historical and future trends utilization graphs of your virtual environment. It is agentless (it receives everything from the management stations like vCenter or HMC). The product supports...
2.25 MB  
Utilities  -  Nessconnect 1.0.2
Nessconnect is a GUI, CLI and API client for Nessus and Nessus compatible servers. With an improved user interface, it provides local session management, scan templates, report generation through XSLT, charts and graphs, and vulnerability trending.
819.2 KB  
Utilities  -  Dynamic Power Management 2.6.16
The Dynamic Power Management (DPM) project explores technologies to improve power conservation capabilities of platforms based on open source software. Of particular interest are techniques applicable to running systems, adjusting power parameters...
30.72 KB  
Utilities  -  Ethernet bridge tables 2.4.37.9
Ethernet bridge tables - Linux Ethernet filter for the Linux bridge. The 2.4-ebtables-brnf package contains the ebtables+bridge-nf patch. Be sure to check out the ebtables hp. This site also contains the arptables userspace tool.
40.96 KB  
Utilities  -  SaraB 1.0.0
SaraB works with DAR (Disk ARchive) to schedule and rotate backups on random-access media (i.e. hard drives, CDs, DVDs, Zip, etc. Basically anything except magnetic tapes.) This reduces hassle for the administrator by providing an automatic backup...
20.48 KB