All Questions
980
questions
82
votes
2
answers
82k
views
ReCaptcha 2.0: enable Submit button on callback if recaptcha successful
I have a very simple form as follows. I want to make it so that the Submit button is disabled, and only enabled after the user has successfully completed the ReCaptcha.
I'm assuming I'm going to need ...
80
votes
11
answers
86k
views
Google reCaptcha response "Uncaught (in promise) null"
I'm use reCaptcha v2 but in dev console response Uncaught (in promise) null in in any case (and moving the .reset() function)
console:
my code for recaptcha:
<div class="text-xs-center" style="...
77
votes
12
answers
157k
views
How to validate Google reCAPTCHA v3 on server side?
I've just set up the new google recaptcha with checkbox, it's working fine on front end, however I don't know how to handle it on server side using PHP. I've tried to use the old code below but the ...
64
votes
12
answers
171k
views
How to Validate Google reCaptcha on Form Submit
Recently, Google completely overhauled their reCaptcha API and simplified it to a single checkbox.
The problem is, I can submit a form with the reCaptcha included without checking it and the form ...
56
votes
1
answer
63k
views
ReCaptcha 2.0 With AJAX
I have managed to get ReCaptcha 2.0 working in my website. However, it's only working when I don't use AJAX and I let the form submit "naturally".
I want to submit the form with the captcha and ...
55
votes
4
answers
76k
views
New reCaptcha with jQuery Validation Plugin
I searched and can't figure out how to validate the new reCaptcha, before form submit, along with the validate function of jQuery validation Plugin.
My intent:
$.validator.addMethod('...
43
votes
6
answers
97k
views
How to Verify Google Recaptcha V3 Response?
How to integrate Google reCAPTCHA Version 3 in Client Side and Server Side(php). following code use to display recaptcha but its not working good. How to do this integration.
<html>
<...
41
votes
4
answers
17k
views
ReCaptcha not working properly on iPhone
I have a website with a simple contact form. The validation is somewhat minimal because it doesn't go into a database; just an email. The form works as such:
There are 5 fields - 4 of which are ...
28
votes
6
answers
46k
views
Require User to click google's new recaptcha before form submission
I am using google's new recaptcha inside my form (HTML5):
https://www.google.com/recaptcha
Is there a way to check and mark recaptcha as required before form submission?
I want to validate this on ...
25
votes
8
answers
54k
views
Google reCAPTCHA - keep getting `incorrect-captcha-sol`
I am trying to add a reCAPTCHA to my site, but keep getting incorrect-captcha-sol error when I submit the answer.
Can anyone tell me if I am correct in doing the following?
I have a generic index.php, ...
25
votes
13
answers
46k
views
Google ReCaptcha not posting 'g-recaptcha-response'
This question has been asked before: New Google ReCaptcha not posting/receiving 'g-recaptcha-response' - but there was no proper answer.
I have the exact same set up as him, but the code ...
23
votes
8
answers
9k
views
NoCaptcha returning error invalid-json
I integrated Googles funky ReCaptcha NoCaptcha into a simple html5 form.
On localhost it is working, but testing online it always returns the error 'invalid-json'. Here is part of my code:
$secret = '...
23
votes
4
answers
28k
views
reCaptcha show "input error: invalid referer"
I have registered an account on recaptcha.net with mydomain.com.
While I'm developing on my localhost it works fine, but whenever I try to open the page from another machine in my local network it ...
18
votes
3
answers
23k
views
reCaptcha: error code "invalid-keys"
I currently implementing the reCaptcha for an form with HTML and PHP. The client-side solution works without any problems. But the server side fails with the validation.
So here is my server side ...
18
votes
6
answers
43k
views
I got "timeout-or-duplicate" error using ReCaptcha v3
I got a contact form on my website on Laravel and I'd like to place a ReCaptcha v3 but for now the result I got from the verification is the error "timeout-or-duplicate".
Can you help me from A to Z ?...
16
votes
7
answers
38k
views
Struggling with recaptcha v2 and form submission
https://developers.google.com/recaptcha/docs/verify
if(isset($_POST['submit'])){
$recaptchaResponse = $_POST['g-recaptcha-response'];
$secretKey = 'MYKEY';
$request = file_get_contents("https://www....
16
votes
2
answers
2k
views
How to protect jquery button with Invisible reCaptcha?
I want to protect my jquery button from bots without annoying the users, so i thought of adding google's invisible recaptcha to it. However implementation isn't as easy as i though and i can't seem to ...
16
votes
2
answers
1k
views
reCAPTCHA stopped working - Invalid Encryption
I have been using reCAPTCHA on my site for a while now and suddenly I realized it has stopped to work. The reCAPTCHA is there, however after verifying correctly, the response FAILS which makes the ...
14
votes
1
answer
25k
views
How to reset Google reCaptcha?
Here is my PHP Code:
function post_captcha($user_response) {
$fields_string = '';
$fields = array(
'secret' => '',
'response' => $user_response
);
foreach($...
13
votes
3
answers
16k
views
reCaptcha v3 handle score callback
I followed recaptcha v3 example and managed to make it return a callback with a score for a page, similar with their demo.
What I don't understand is how to handle the score that is returned.
I ...
12
votes
4
answers
21k
views
Recaptcha Not Verifying with file_get_contents
Confused as to why this isn't working. When the form is submitted I get the error message, meaning my recaptcha verification has failed.
From my form:
<div class="g-recaptcha" data-sitekey="(site-...
12
votes
1
answer
54k
views
How to add reCaptcha on a html web form
I have all my code set up exactly how Google documents the API but it keeps returning a boolean of false, is there something wrong that I have done?
<?php
if(isset($_POST['sendEmail'])) {
$...
11
votes
5
answers
43k
views
Recaptcha missing-input-response
I have a problem with google reCaptcha.
Here is my php code:
$secret = 'SECRET_KEY';
$response = $_POST['g-recaptcha-respone'];
$remoteip = $_SERVER['REMOTE_ADDR'];
...
11
votes
4
answers
16k
views
Recaptcha - Form Customization
Does anyone know if recaptcha can be fully customize without the default frame. I need the recaptcha image to only be a certain width as well as the input field. Has anyone done this before with ...
10
votes
2
answers
13k
views
ReCaptcha always asking for extra verification?
For a project, I recently installed the new 2.0 version of ReCaptcha. I added the keys and secret to the Developer Panel, and installed the widget in my form.
It works perfectly, but with one little ...
9
votes
3
answers
10k
views
How to generate a Google ReCaptcha V2 secure token with PHP?
I'm trying to generate a secure token for ReCaptcha V2, as described here:
https://developers.google.com/recaptcha/docs/secure_token
Unfortunately, my generated stoken isn't valid and I can't find a ...
9
votes
2
answers
21k
views
Google reCAPTCHA V2 JavaScript We detected that your site is not verifying reCAPTCHA solutions
Error Message
We detected that your site is not verifying reCAPTCHA solutions. This is required for the proper use of reCAPTCHA on your site. Please see our developer site for more information.
I ...
8
votes
1
answer
16k
views
PHP - Validate the recaptcha v2 response
#form.php
if(isset($_POST['g-recaptcha-response'])){
$captcha=$_POST['g-recaptcha-response'];
$captcha=$_GET["g-recaptcha-response"];
$response=file_get_contents("https://www.google.com/...
8
votes
3
answers
12k
views
Recaptcha Request is returning Null
I'm trying to implement this Recaptcha request into my sign-up form, however it isn't working. The cURL/JSON request returns null when I successfully validate the Recaptcha on my website.
I tried ...
8
votes
1
answer
8k
views
How to reduce recaptcha difficulty level
Some of the captchas produced by reCAPTCHA are unreadable.
Are there any configurations that we could use in order to lower difficulty level of reCAPTCHA (I'm using reCAPTCHA PHP API)
OR Are there ...
8
votes
3
answers
8k
views
Adding reCAPTCHA v2 into my PHP file
The PHP problem has been solved. Here are the HTML and PHP codes that I'm using:
contact_form.html:
<html>
<head>
<title>My Contact Form</title>
<script src='https:...
7
votes
7
answers
24k
views
Recaptcha not working on https
i have a site in codeigniter,and that site working perfectly on http.
My client moved the site to https.
Then now when user registration is not working ,because there have a recaptcha used in it.
...
7
votes
2
answers
22k
views
PHP form + Google reCAPTCHA
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) ...
7
votes
4
answers
844
views
Lower the difficulty level on a captcha zend form element?
I am using reCaptcha with zend form, like this:
$recaptcha = new Zend_Service_ReCaptcha('xxx', 'yyy',
NULL, array('theme' => 'white'));
$captcha = new Zend_Form_Element_Captcha('...
7
votes
1
answer
3k
views
Google Captcha not displaying in GoDaddy secure (https)
I'm having an issue where Google's reCaptcha does not appear in my https website and was wondering if anyone else here has encountered/is encountering the same issue and has found a way around it.
...
7
votes
3
answers
9k
views
New Google ReCaptcha not posting/receiving 'g-recaptcha-response'
I am trying to implement Googles new 'NoCaptcha' on my site. So far I have the widget appearing fine, but it does not verify on my PHP page.
My code is set up as such:
In <head>
<script ...
7
votes
2
answers
1k
views
PHP Use reCAPTCHA if brute force attempt is detected
I am building a login script with a brute force checker that, when triggered, displays reCAPTCHA. The problem that I am having is that when the correct username/password/captcha response are entered, ...
7
votes
1
answer
657
views
pear mail and google captcha do not work
I use php 5.3.13 ,pear mail and google captcha (recaptcha) to create a simple "contact us" form.
There is an email field, a subject field and a comments field. User has also solve the captcha and ...
6
votes
6
answers
5k
views
reCaptcha styling is broken
I implemented reCaptcha into the following website. I used recaptchalib.php from Google Code and did not change anything in the PHP file.
However, the result reCaptcha in my website seems to broke. ...
6
votes
1
answer
32k
views
"Could not open socket"
How do I alleviate the "Could not open socket" error that is happening on my site?
I have troubleshot that it is CAPTCHA (I'm using reCAPTCHA). It is only displaying this error on the two pages where ...
6
votes
2
answers
10k
views
reCaptcha file_get_contents(): SSL operation failed
I'm using Google reCaptcha for my webpage.
In testing mode everything works fine. No SSL.
When I test my webpage in production environment the following errors occures:
Warning: ...
6
votes
6
answers
8k
views
Is this possible to use recaptcha without internet connection
I'm working on core php. I want to use recaptcha for my form. I downloaded recaptcha from this link. It works fine but when I switched off my internet connection it's invisible on my local.
Is it ...
5
votes
2
answers
8k
views
Integrating google reCaptcha into an existing payment form
recently my site has been receiving a lot of spam through my payments form and I've decided I need to add a captcha in order to prevent this.
I was looking at a few options and I decided to go with ...
5
votes
3
answers
4k
views
Google recaptcha with my jquery/ajax function [closed]
Searching about setting up reCaptcha seems to lead to using jQuery validation. However I'm not sure how to do this in the context of an ajax form submission.
Presently I'm using Validity, not jQuery ...
5
votes
1
answer
9k
views
Why I am obtaining this "SSL certificate problems: unable to get local issuer certificate" error validating a reCAPTCHA?
I am pretty new in PHP and moreover in Laravel and I have the following strange problem.
I have developed witha registration form containing a Google reCAPTCHA field, something like this:
<form ...
5
votes
1
answer
6k
views
Google reCAPTCHA g-recpatcha-response has no value in PHP
p.s: I gave up on this as I found no solution and implemented my own php captcha that worked a treat :) - http://www.the-art-of-web.com/php/captcha/
I have spent many hours & days trying to solve ...
5
votes
1
answer
4k
views
Google ReCaptcha Display with Image & Client Side Validation on Form Submit
I have followed
How to Validate Google reCaptcha on Form Submit
I have below code in my index.php
<!DOCTYPE HTML>
<html>
<head>
<script src='https://www.google.com/...
5
votes
1
answer
997
views
Having much trouble inserting PHP-based reCaptcha into a jQuery-based Shoutbox
This is my first time asking on Stack Overflow (however, not my first making use of the good responses on other people's questions). I'm an empiric website programmer, so rest assured I always try ...
5
votes
4
answers
6k
views
How to prevent spam reviews in Magento
We have been seeing a number of spam product reviews in our Magento store. I recently installed the Fontis reCaptcha extension to add a reCaptcha form to the reviews form. In all my testing, this ...
4
votes
3
answers
25k
views
ReCaptcha - Could not open socket
Before I ask this question, let me mention I know there are several of the exact same questions on the site but I am afraid they can't help me out.
Hi,
Yesterday my ReCaptcha was working fine but ...