Simple Captcha in Rails Application

Hello,

Today I will tell you about Captcha.

You must saw different kinds of captcha on the registration page.Well that is for security purpose so any hacker can’t create fake users using any program or script.This is very serious problem on the website.But the solution is much simpler.

USE CAPTCHA!!!

Now, which is the best option to implement captcha in rails?

I found a plugin for captcha named “Simple Captcha”.It has quality same as it’s name.It’s damn easy and you supposed to add only one line of code in your view file(Yes!!! Only one line of code. Believe me!)

You can find it here: http://expressica.com/simple_captcha

After installing this plugin write only one line in view file as below:

<%= show_simple_captcha %>

That’s it.

Keep in mind that to use this plugin you have to install RMagick first.
To know more about RMagick click here: http://rmagick.rubyforge.org

You can do custom changes as per your requirements in the plugin.Go through readme file for more details.

So add captcha in your application and have a safe application!

Advertisements

About pulkitengg055
Hi I am Pancholi Pulkit.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: