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

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

Serving Software Downloads in 956 Categories, Downloaded 49.483.533 Times

django-honeypot 0.1.2

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

django-honeypot

Report Broken Link
Printer Friendly Version


Product Homepage
Download (36 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
Network & Internet  -  django-composite-field 0.1
django-composite-field is a CompositeField implementation for the Django framework. #md5=f88a91adbbbde5d4de730e0086f40240
10.24 KB  
Network & Internet  -  django-html-field 0.1.3
django-html-field provides a HTML sanitization and tag stripping either at the database level or at the form level, with no dependencies outside of the standard library.
10.24 KB  
Network & Internet  -  django-compound-field 0.1
django-compound-field is a Django add-on that allows you to define compound fields, e.g. {{{ class AddressField(CompoundField): phone = models.CharField(max_length=30) mobile = models.CharField(max_length=30) fax...
20.48 KB  
Network & Internet  -  django-inplaceedit-extra-fields 0.0.4
Inplace Edit Form Extra Field is a Django application that adds other useful fields. It is distributed under the terms of the GNU Lesser General Public License
10.24 KB  
Network & Internet  -  django-autoslug-field 0.2.1
AutoSlugField for Django based on django-extensions AutoSlugField, adds option to track foreignkey/parent field for slug.
10.24 KB  
Programming  -  django-recaptcha-works 0.3.4
django-recaptcha-works provides a Django form field that integrates the reCaptcha service.
10.24 KB  
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  -  Preset Order Comments Contribution 0.1
You will still be able to add any text you want in the default Comment textarea field.Inserting/Editing/Deleting the preset comments can be completed from the Localization >> Orders Comment menu.In the order edit page choose the preset comment you...
 
Database Tools  -  swemc 1.0
swemc can connect of a MySQL database, execute SQL query and output the query results in HTML tables.Functions of swemc:- Execute select, update, insert and delete SQL queries- Output query results in HTML tables that can have their presentation...
10 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  
NEW DOWNLOADS IN LINUX SOFTWARE, UTILITIES
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
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  
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  
Utilities  -  Command Not Found 0.2.41
Command Not Found is a program that uses a cache of existing programs and their associated packages to aid users in their day-to-day command-line work. Usage: command-not-found [options] Options: ...
30.72 KB