grosser / honeypot
- Source
- Commits
- Network (0)
- Issues (1)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
8d783bd
honeypot / README.markdown
| e80c53a7 » | grosser | 2008-10-06 | 1 | What it is | |
| 484a3b19 » | grosser | 2008-10-06 | 2 | ======== | |
| 3 | A simple plugin to provide honeypots and the necessary validations. | ||||
| ff763c16 » | grosser | 2008-10-06 | 4 | It add fields to your forms, empty and filled, then checks if there values are unchanged. | |
| 484a3b19 » | grosser | 2008-10-06 | 5 | ||
| e80c53a7 » | grosser | 2008-10-06 | 6 | Install | |
| 484a3b19 » | grosser | 2008-10-06 | 7 | ======= | |
| ff763c16 » | grosser | 2008-10-06 | 8 | script/plugin install git://github.com/grosser/honeypot.git | |
| 9 | |||||
| e80c53a7 » | grosser | 2008-10-06 | 10 | Usage | |
| ff763c16 » | grosser | 2008-10-06 | 11 | ===== | |
| 888f07c2 » | grosser | 2008-10-06 | 12 | Controller: | |
| e80c53a7 » | grosser | 2008-10-06 | 13 | ||
| 888f07c2 » | grosser | 2008-10-06 | 14 | before_filter :check_honeypots, :only => [:create] | |
| e80c53a7 » | grosser | 2008-10-06 | 15 | ||
| d737d5fe » | grosser | 2008-10-06 | 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 | 24 | Inside form: | |
| 25 | |||||
| 888f07c2 » | grosser | 2008-10-06 | 26 | =honeypot | |
| ff763c16 » | grosser | 2008-10-06 | 27 | ||
| e80c53a7 » | grosser | 2008-10-06 | 28 | Other solutions | |
| ff763c16 » | grosser | 2008-10-06 | 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) | ||||
