Coder Social home page Coder Social logo

humanizer's Introduction

Humanizer

Humanizer is a very simple CAPTCHA method. It has a localized YAML file with questions and answers which is used to validate that the user is an actual human. Any model that includes ActiveModel::Validations should work. Our aim is to be database and mapper agnostic, so if it doesn't work for you, open an issue. Humanizer only works with Rails 3.

Installation

  1. gem install humanizer
  2. rails g humanizer

Usage

  1. In your model, include Humanizer and add the #require_human_on method, example:

       class User < ActiveRecord::Base
         include Humanizer
         require_human_on :create
       end
    
  2. Ask the question in the form, example:

       <%= f.label :humanizer_answer, @model.humanizer_question %>
       <%= f.text_field :humanizer_answer %>
       <%= f.hidden_field :humanizer_question_id %>
    

Configuration

Default translations can be found from config/locales/humanizer.en.yml

You might want to add / change question and answer pairs. This can be easily done by adding / modifying entries in locales file.

Live sites

License

Humanizer is licensed under the MIT License, for more details see the LICENSE file.

Question/Answer Translations

  • English and Finnish translations by Kisko Labs
  • German by Sven Schwyn

humanizer's People

Contributors

akonan avatar britto avatar jcxplorer avatar joren avatar matiaskorhonen avatar

Stargazers

 avatar

Watchers

 avatar  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.