All Questions
441
questions
104
votes
17
answers
426k
views
reCAPTCHA ERROR: Invalid domain for site key
I have implemented my reCAPTCHA in line with as is shown in the example.
I have this script in the head tag:
<script src="https://www.google.com/recaptcha/api.js"></script>
In my form ...
82
votes
11
answers
88k
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="...
65
votes
12
answers
173k
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 ...
60
votes
8
answers
96k
views
How can I make reCAPTCHA a required field?
I'm using Google reCAPTCHA and have been able to add the CAPTCHA component to my page inside a form. But when I submit the form there's no validation taking place to check if the CAPTCHA has been ...
38
votes
9
answers
30k
views
How can I process HTML form validation before reCAPTCHA's validation?
I integrated the new hidden reCAPTCHA (v2) framework which by default verifies the user with the click event of the submit button. But this event is triggered before the built-in HTML form validation. ...
36
votes
5
answers
84k
views
Implement the new Invisible reCaptcha from Google
I'm building a PHP website where I would like to put a captcha on the login form. I went with Google's new Invisible reCaptcha but I'm having trouble with implementing it (HTML part, the PHP is ...
36
votes
3
answers
10k
views
Recaptcha creates iFrame on page, breaks styling
Recaptcha is adding a "This frame prevents back/forward cache problems in Safari" iFrame to the top of my website (code included below), which is pushing off the styling by 20-30px (approximately).
...
34
votes
3
answers
16k
views
How to run reCaptcha ONLY if HTML5 validation has passed?
Usually, HTML5 form validation runs before the submit event.
With this
<form id="myForm">
<input type="text" name="foo" required />
<button type="submit"> Submit </...
32
votes
14
answers
71k
views
No CAPTCHA reCAPTCHA Resizing
Hi I just added Google's No CAPTCHA reCAPTCHA to my website, and I am running into a small little issue. It does NOT fit on my mobile website, and that is a HUGE issue. I have tried everything such as:...
25
votes
8
answers
55k
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, ...
22
votes
4
answers
38k
views
Difference between CAPTCHA and reCAPTCHA
What are the differences between CAPTCHA and reCAPTCHA?
What is the best situation to opt for reCAPTCHA?
19
votes
5
answers
53k
views
Explicitly Rendering ReCaptcha - Onload Function Not Firing
From the documentation I understood that in order to change the language of the recaptcha I have to render it explicitly.
The problem is, however, that it's not really showing up, and the onload ...
18
votes
3
answers
54k
views
Uncaught Error: ReCAPTCHA placeholder element must be an element or id
I'm adding ReCAPTCHA to a (Bootstrap Jekyll) website that has multiple contact forms. There's a popup modal in the footer, an occasional "contact us now" section, and also a "request more information ...
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 ...
15
votes
2
answers
14k
views
Invisible google Recaptcha and ajax form
I have an ajax form:
<form id="my_form">
<input type="text" id="field1" />
<input type="submit" value="submit" />
</form>
And js code:
document.getElementById("...
14
votes
5
answers
21k
views
Google "reCaptcha" sometimes doesn't get displayed/rendered
Sometimes I have to reload the webpage multiple times till the reCaptcha gets rendered. I and a friend tested both on Firefox and Chrome but the problem is consistent and doesn't seem to depend on the ...
13
votes
7
answers
27k
views
How to add multiple invisible recaptcha in single page?
I have added two invisible recaptcha divs but when i saw the code in inspect element then only one invisible recaptcha added in my single page.
My code is:
<div id="captcha1" class="g-recaptcha"
...
13
votes
4
answers
31k
views
Google ReCAPTCHA how to make required?
Does anyone know how to make the "Google ReCAPTCHA (v2)" be "required" in a form?
I mean no form submission until recaptcha is filled-in?
I use ParsleyJs in my form, but didnt find a way to make it ...
13
votes
1
answer
57k
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'])) {
$...
13
votes
2
answers
10k
views
elusive recaptcha bug. Copy code always fails
A very small amount of my users get a captcha that asks them to copy and paste a code, but it always fails for them - while most of the users get the normal one (checkbox) which goes through correctly....
11
votes
7
answers
17k
views
reCAPTCHA box not being aligned correctly
I can't get to align correctly the reCAPTCHA form on my registration page. Even if the div it is contained in has text-align set to center, it is displayed on the left of the page:
While if I change ...
11
votes
2
answers
11k
views
ASP.Net MVC Recaptcha Jquery Ajax issue
I am using ASP.Net MVC to and trying to implement a Google reCaptcha object into a page.
I am trying to avoid the use of models in my forms, and want to just directly call a method using jquery ajax.
...
10
votes
2
answers
14k
views
Passing variables in invisible reCaptcha callback
I am creating a form for a website in our CMS application that uses the new invisible reCaptcha of Google.
However, I am stuck on how to use the callback of the reCaptcha?
Before the use of the ...
8
votes
1
answer
2k
views
How do I stop Google reCAPTCHA from showing alerts?
I have some forms on the website and Google invisible reCAPTCHA. From time to time something goes wrong and an alert is shown: "Cannot contact reCAPTCHA. Check your connection and try again.". I tried ...
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
6
answers
14k
views
Recaptcha fixed image size
Why is recaptcha image fixed in size 300x57 ? Even when customizing the div where the image is injected, the width and height of the div are overridden and set to 300x57. Of course the image can be re-...
7
votes
1
answer
14k
views
recaptcha v3 - ERROR for site owner: Invalid key type
I am getting the following error in Google Recaptcha V3 on my website.
ERROR for site owner: Invalid key type
I am using following method to verify captcha:
adding script
<script src="...
7
votes
2
answers
15k
views
Positioning reCAPTCHA widget with CSS
I'm trying to align the reCAPTCHA widget with my input fields, but styling .g-recaptcha doesn't seem to achieve much. Does anyone know of any selectors I can use?
Form HTML:
<div class="contact-...
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.
...
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 ...