Sha256: 4f2ebd5ed3d109b8dd44679205b16646edc5091b3a473e87a13e36e616ce7c95
Contents?: true
Size: 1.3 KB
Versions: 2
Compression:
Stored size: 1.3 KB
Contents
# Zero Captcha **The simplest way to add a zero friction captcha in your Rails forms.** A zero captcha works off the idea that most simple bots do not run a full JavaScript interpreter when crawling web forms, so they are unable to fill a required field whereas the required field is actually hidden and autopopulated by JavaScript in a real browser with a real human. This means having a layer of spam protection while maintaining zero friction. This should not be used solely by itself, but can be useful as an extra layer of defense alongside honeypot captchas and/or more traditional captchas. ## Requirements Requires jQuery on running on the client side. ## Installation In your Gemfile, simply add gem 'zero-captcha' ## Usage ### form_for Simply specify that the form has a honeypot in the HTML options hash: <% form_for Comment.new, :html => { :zero_captcha => true } do |form| -%> ... <% end -%> ### form_tag with block Simply specify that the form has a honeypot in the options hash: <% form_tag comments_path, :zero_captcha => true do -%> ... <% end -%> ### form_tag without block Simply specify that the form has a honeypot in the options hash: <%= form_tag comments_path, :zero_captcha => true -%> ... </form> ## Copyright See LICENSE for details.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zero-captcha-0.0.2 | README.markdown |
zero-captcha-0.0.1 | README.markdown |