grosser / honeypot

Rails: Simple honeypots

This URL has Read+Write access

honeypot / README.markdown
e80c53a7 » grosser 2008-10-06 readme 1 What it is
484a3b19 » grosser 2008-10-06 first commit 2 ========
3 A simple plugin to provide honeypots and the necessary validations.
ff763c16 » grosser 2008-10-06 readme 4 It add fields to your forms, empty and filled, then checks if there values are unchanged.
484a3b19 » grosser 2008-10-06 first commit 5
e80c53a7 » grosser 2008-10-06 readme 6 Install
484a3b19 » grosser 2008-10-06 first commit 7 =======
ff763c16 » grosser 2008-10-06 readme 8 script/plugin install git://github.com/grosser/honeypot.git
9
e80c53a7 » grosser 2008-10-06 readme 10 Usage
ff763c16 » grosser 2008-10-06 readme 11 =====
888f07c2 » grosser 2008-10-06 readme 12 Controller:
e80c53a7 » grosser 2008-10-06 readme 13
888f07c2 » grosser 2008-10-06 readme 14 before_filter :check_honeypots, :only => [:create]
e80c53a7 » grosser 2008-10-06 readme 15
d737d5fe » grosser 2008-10-06 readme 16 OR - if the default render new + flash[:error] is not what you want
17
18 def create
19 render :action=>'error' and return unless honeypot_untouched?
20 ...
21 end
22
23
e80c53a7 » grosser 2008-10-06 readme 24 Inside form:
25
888f07c2 » grosser 2008-10-06 readme 26 =honeypot
ff763c16 » grosser 2008-10-06 readme 27
e80c53a7 » grosser 2008-10-06 readme 28 Other solutions
ff763c16 » grosser 2008-10-06 readme 29 ===============
30 If you want more sophisticated protection, (on cost of maintainability and usability)
31 try the [negative_captcha plugin](http://github.com/subwindow/negative-captcha/tree/master)