public
Description: Rails: Simple honeypots
Homepage:
Clone URL: git://github.com/grosser/honeypot.git
grosser (author)
Mon Oct 06 09:24:59 -0700 2008
commit  0969cc5b132687cff3a45d3f114a2cf9810ff16d
tree    bbe50054f2c90e60d90fbc0c0c11f902bd88b3be
parent  d737d5fee6460837f7e116369302159890e44334
name age message
file README.markdown Loading commit data...
file init.rb
directory lib/
README.markdown

What it is

A simple plugin to provide honeypots and the necessary validations. It add fields to your forms, empty and filled, then checks if there values are unchanged.

Install

script/plugin install git://github.com/grosser/honeypot.git

Usage

Controller:

before_filter :check_honeypots, :only => [:create]

OR - if the default render new + flash[:error] is not what you want

def create
  render :action=>'error' and return unless honeypot_untouched?
  ...
end

Inside form:

=honeypot 

Other solutions

If you want more sophisticated protection, (on cost of maintainability and usability) try the negative_captcha plugin