Links
Honeypot
Categories
Honeypot
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.
script/plugin install git://github.com/grosser/honeypot.git
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
If you want more sophisticated protection, (on cost of maintainability and usability) try the negative_captcha plugin
Vitals
| Home | http://github.com/grosser/honeypot/tree/master |
|---|---|
| Repository | git://github.com/grosser/honeypot.git |
| License | Rails' (MIT) |
| Tags |
|
| Rating | (4 votes) |
| Owner | Michael Grosser |
| Created | 23 October 2008 |

