recaptcha

How to validate Google reCAPTCHA v2 in django

醉酒当歌 提交于 2020-01-12 05:24:09
问题 I have been trying to use the Google reCAPTCHA on a website that I've been making. The captcha loads on the webpage but I've been unable to validate it using several methods. I've tried the recaptcha validation using the method given at How to use Python plugin reCaptcha client for validation? but I think it's outdated as it no longer works and it is referring to challenges whereas the one I'm trying to use is the new 'checkbox' reCAPTCHA v2 by Google or maybe I need to make changes in my

Google reCaptcha IE8

半世苍凉 提交于 2020-01-11 09:09:14
问题 Is Google reCaptcha v2 supported in Internet Explorer 8? If not is there any suitable Internet Explorer 8 compatible captchas? I am seeing a issue where the reCaptcha code is trying to use the method getContext. Object doesn't support property or method 'getContext' 回答1: The code I ended up using to support IE8 was the following. <!--[if !IE 8]><!--><script src="https://www.google.com/recaptcha/api.js"></script><!--<![endif]--> <!--[if IE 8]><script src="https://www.google.com/recaptcha/api

PHP form + Google reCAPTCHA

北城余情 提交于 2020-01-10 08:38:29
问题 It's kind of weird that Google's documentation for recaptcha is not as helpful as I thought it was going to be. I was asked to take a current existing form (which is getting spammed a few times a day) and update it with Google's new recaptcha. There are a lot of tutorials out there for the old captcha, but not so many for the new one. I basically just want a simple form to capture name, email, message, and then replace my current "anti-bot field" with the recaptcha (I used a field that

Force Google recaptcha to use simple checkbox click challenge

六月ゝ 毕业季﹏ 提交于 2020-01-06 18:08:32
问题 I'm wondering if there is a way to customize Google Recaptcha to use only the simple "checkbox click" challenge and not those in which you have to click on various images. For the first time I have to use this captcha for a website dedicated to senior people and Ive been asked to use the simplest method. I've looked at the docs but found nothing. Thanks! 回答1: The harder to solve captchas appear if you're using recaptcha a lot. Generally, low frequency users should only see the checkbox and

Google ReCaptcha 2 Fatal error: Class 'ReCaptcha\RequestMethod\Post' not found

前提是你 提交于 2020-01-06 15:09:36
问题 I'm a google recaptcha v2 on a local machine running wamp. Everything looks fine except it keeps dying when its supposed to validate the form I'm getting this error: Fatal error: Class 'ReCaptcha\RequestMethod\Post' not found in C:\wamp\www\php\contactForm\Captcha\ReCaptcha.php on line 73 I've pretty much copy/pasted the example code from google: if (!empty($human)) { require_once('Captcha\ReCaptcha.php'); $recaptcha = new \ReCaptcha\ReCaptcha($secret); $resp = $recaptcha->verify($human,

Symfony2 EWZ Recaptcha field not correctly validating

我的梦境 提交于 2020-01-05 09:54:08
问题 I am having an issue with Validating an EWZ recaptcha field in a form that I have in Symfony2. Here is my Captcha Entity: <?php namespace Acme\FormBundle\Entity; use Doctrine\ORM\Mapping as ORM; use EWZ\Bundle\RecaptchaBundle\Validator\Constraints as Recaptcha; /** * Captcha * * @ORM\Table() * @ORM\Entity */ class Captcha { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var boolean * * @ORM\Column(name=

Symfony2 EWZ Recaptcha field not correctly validating

自作多情 提交于 2020-01-05 09:53:47
问题 I am having an issue with Validating an EWZ recaptcha field in a form that I have in Symfony2. Here is my Captcha Entity: <?php namespace Acme\FormBundle\Entity; use Doctrine\ORM\Mapping as ORM; use EWZ\Bundle\RecaptchaBundle\Validator\Constraints as Recaptcha; /** * Captcha * * @ORM\Table() * @ORM\Entity */ class Captcha { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var boolean * * @ORM\Column(name=

Google Recaptcha V3 - Widget Id when loading captcha through URL

霸气de小男生 提交于 2020-01-05 09:36:39
问题 I am implementing the Recaptcha V3 on my site, and I could not find a proper way to reset the token if my request has failed. Following the documentation, to load the recaptcha I need to include the following script on my page: <script src='https://www.google.com/recaptcha/api.js?render=MY_KEY'></script> Also I am binding the captcha token to a field, to validate on my back end when the customer choose to send an e-mail: grecaptcha.ready(function() { grecaptcha.execute('MY_KEY', { action :

React Native with reCATPCHA

Deadly 提交于 2020-01-04 05:58:09
问题 I'm trying to implement the google reCAPTCHA in my react native app. I'm using a wrapped webview. <WebView javaScriptEnabled={true} mixedContentMode={'always'} style={{height: 200}} source={{ html: this.getWebviewContent() }}/> getWebviewContent(){ var originalForm = '<!DOCTYPE html><html><head><script src="https://www.google.com/recaptcha/api.js"></script></head><body><form action="[POST_URL]" method="post"><input type="hidden" value="[TITLE]"><input type="hidden" value="[DESCRIPTION]">

reCaptcha + RequireJS

廉价感情. 提交于 2020-01-03 21:09:55
问题 How can I import recaptcha using requirejs. I already tryed several things and nothing works. I need do that to be able to render it by my own using the method render of reCaptcha once it has been loaded. require.config({ paths: { 'recaptcha': 'http://www.google.com/recaptcha/api' } }); require( ['recaptcha'], function( recaptcha ) { // do something with recaptcha // recaptcha.render /// at this point recaptcha is undefined console.log(recaptcha); }); <script src="https://cdnjs.cloudflare.com