Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recommendations for a captcha on Ruby on Rails [closed]

Tags:

I'd like to implement a captcha in a Rails project for a form submission, but I'm not sure what to go with. I'm inclining towards simplicity of implemention, and reliability when in use, over it being too sophisticated, as my application doesn't require too high a level of security.

Anyone have any recommendations?

like image 244
conspirisi Avatar asked Dec 07 '09 10:12

conspirisi


1 Answers

The easiest way to add a CAPTCHA to your Rails application is using Ambethia reCAPTCHA:

1. Installation:

config.gem "ambethia-recaptcha", :lib => "recaptcha/rails",        :source => "http://gems.github.com" 

You can install it as a plugin, too, if you like.

2. Get a reCAPTCHA account:

You have to create a reCAPTCHA key. You can do it on the reCAPTCHA site.

3. Usage:

Use recaptcha_tags to output the necessary HTML code and then verify the input with verify_recaptcha.

4. Further reading:

  • Ambethia reCAPTCHA
  • reCAPTCHA documentation
like image 82
Daniel Rikowski Avatar answered Sep 30 '22 03:09

Daniel Rikowski