RubyGems.org

In the never ending battle with the form bots, here's my attempt to mislead them. protect_via_honeypots creates some hidden fields. As normal users don't mess with hidden fields we can assume that when those fields are filled with data: a bot filled it. So when that happens, protect_via_honeypots throws an error (as the same way protect_from_forgery does)

installgem install protect_via_honeypots
Authors

Roy van der Meij

5,325 total downloads 1,444 for this version
Owners

5607d322cef6a58ad8c09c35704fec01

Gemfile
gem 'protect_via_honeypots', '~> 0.2.0'
Versions
  1. 0.2.0 November 23, 2010 (86 KB)
  2. 0.1.3 October 27, 2010 (56.5 KB)
  3. 0.1.2 October 27, 2010 (29.5 KB)
  4. 0.1.1 October 27, 2010 (20 KB)
Development Dependencies
  1. thoughtbot-shoulda >= 0