Repository is archived
No commit activity in last 3 years
No release in over 3 years
Simple Google reCAPTCHA library
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

Simple Recaptcha

Ruby library for reCAPTCHA

Usage

require "simple_recaptcha"

SimpleRecaptcha.verify(:private_key => "your-private-key", :ip => "127.0.0.1", :challenge => "challengestring", :response => "user input")

All 4 attributes must be specified: :private_key, :ip, :challenge, :response

Configuration

You can configure Simple Recaptcha in two different ways:

SimpleRecaptcha.private_key = "your-private-key"

SimpleRecaptcha.configure do |confg|
  config.private_key = "your-private-key"
  config.public_key = "your-public-key"
end

You can set public_key for consistency, however it is not used during verification

Copyright

Copyright © 2011 Wojciech Wnętrzak. See LICENSE for details.