This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Mon Nov 23 13:47:16 -0800 2009 | |
| |
README.textile | Mon Nov 23 13:48:30 -0800 2009 | |
| |
Rakefile | Thu Oct 29 11:31:09 -0700 2009 | |
| |
init.rb | Thu Oct 29 11:31:09 -0700 2009 | |
| |
install.rb | Thu Oct 29 11:31:09 -0700 2009 | |
| |
lib/ | Thu Oct 29 11:31:09 -0700 2009 | |
| |
tasks/ | Thu Oct 29 11:31:09 -0700 2009 | |
| |
test/ | Thu Oct 29 11:31:09 -0700 2009 | |
| |
uninstall.rb | Thu Oct 29 11:31:09 -0700 2009 |
README.textile
Trap Door – Reverse Captcha for Rails
Unobtrusive Captcha for your Rails forms. Trap Door works by adding a hidden “honeypot” field to your forms that only a spam bot will fill out. A before filter checks for the presence of this field and banishes bots to a spam trap.
Installation
script/plugin install git://github.com/hardbap/trap_door.git
Using Trap Door
In your view
<% form_for(@post) do |form| %>
<%= trap_door_field %>
# the rest of your form...
In your controller
class PostController < ApplicationController
trap_door :only => :create
# the rest of your controller...
Configuration
By default Trap Door names the hidden_field :affiliate_id. Obviously this won’t work for everyone so you can change the field name by creating an initializer in config/initializers and telling Trap Door the name it should use for the honeypot field:
TrapDoor.honeypot_field_name = :go_away
Copyright © 2009 Mike Breen, released under the MIT license







