Giter Site home page Giter Site logo

iq_captcha's Introduction

= IqCaptcha

Prerequisite package:

ubuntu 10.04, sudo apt-get install libmagickwand-dev
ubuntu 11.04, sudo apt-get install libmagick9-dev
ubuntu 12.04, sudo apt-get install graphicsmagick-libmagick-dev-compat
CentOS, yum install ImageMagick-devel
Mac, brew install imagemagick

Pre requisite gem rmagick

Installation:

  • Place captcha background image named(iq_captcha_background.png) in your project's public folder
  • in Gemfile, gem 'iq_captcha' or gem 'iq_captcha', :git => '[email protected]:barek2k2/iq_captcha.git' and run bundle install
  • in routes.rb, mount IqCaptcha::Engine, :at => '/iq_captcha'
  • Now restart your server and browse for testing, for exaample, http://localhost:3000/iq_captcha, if the captcha comes then it is OK for the test
  • To use the captcha in your project's view
    
    <img src="/iq_captcha?t=<%= Time.now.to_i %>&pointsize=25&color_code=ffffff">
    <input type="text" name="iq_captcha_result" />
    
  • In controller,
    
     if Captcha::valid?(session,params)
       # You are human being
     else
       # You are not human
     end
     
  • You are Done
  • This project rocks and uses MIT-LICENSE.

iq_captcha's People

Watchers

Abdul Barek avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.