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 ...
6
votes
2
answers
2k
views
How to prevent Google reCAPTCHA (v3) from enabling the button it's attached to
I'm adding reCAPTCHA v3 to the user registration form on my website. Previously, the submit button on the form was disabled by default and gets enabled after some validation (ToS acceptance, etc.). ...
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 ...
6
votes
2
answers
2k
views
ReCaptcha overflow/go out of screen
How can i fix this issue? Sometimes it work actually normal but a lot more often i see mistakes like those . i already tried to change css but it change only button proportions not image-select here ...
6
votes
2
answers
8k
views
How to completely defer loading Google reCaptcha until after the page fully loads
I have Google reCaptcha v2 (checkbox type) installed on the website. But it's slowing down the page loading significantly on mobile even with the 'defer' attribute (based on pagespeed test). So, I ...
6
votes
2
answers
4k
views
Recaptcha onclick event
I want to fire a jQuery event onclick when the user selects the recaptcha checkbox.
This is the code I have:
<div id="reCaptcha" data-sitekey="XXXXX"></div>
Is this ...
5
votes
2
answers
15k
views
reCaptcha is rendered in the most right bottom cornver for some reason
My ajax form with recaptcha, simplified code:
<form>
<input type="email" placeholder="Email" required="true" />
<input type="submit" value="Create account" />
<div class="g-...
5
votes
4
answers
19k
views
Can we have one click recaptcha only - not the picture puzzle captcha after it
I integrated recaptcha in my forms
(https://www.google.com/recaptcha/intro/index.html)
However it is very confusing when the rest of the form has not be filled properly, then a picture-captcha opens. ...
5
votes
2
answers
2k
views
reCAPTCHA changing the height of my content by about -20px
Without reCAPTCHA, my page looks like this (jsfiddle):
<html>
<body>
<div class="content_wrap">
<div class="left_container">
</div>
<div class="...
5
votes
2
answers
8k
views
Recaptcha dark theme displays with extra white space on edges
I'm a new web developer, trying to add the latest Recatpcha to a website with a dark background. It displays with white space on some edges - a recent bug that is also being discussed in the Recaptcha ...
5
votes
3
answers
4k
views
How to make google recaptcha responsive with width 100%
I need to make google recaptcha responsive not with transform scale only with width 100% and other but not transform scale. I am Searching many other sites but many of them only use transform scale.
...
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
2
answers
3k
views
Remove frameborder attribute on the iframe of Recaptcha
I need to know where I can change this line of code of Google recaptcha code:
The frameborder attribute on the iframe element is obsolete. I would like to change the frameborder="0" with in the ...
5
votes
2
answers
2k
views
Recaptcha invalid-request-cookie
I'm trying to do Recaptcha in my page. I'm checking a demo with the localhost. But, I'm keep getting error as invalid-request-cookie always when checking. I'm following Displaying recaptcha without ...
5
votes
2
answers
6k
views
styling google's new recaptcha checkbox?
I've implemented Googles new recaptcha checkbox like so:
<div class="g-recaptcha" data-sitekey="MY_SITE_KEY"><div>
When loaded the iframe contents look like this:
<div class="rc-...
4
votes
1
answer
14k
views
Google ReCAPTCHA callback function not working
I use Google's reCAPTCHA on my website and I'm having problems getting it to call a callback function. After a user has successfully passed the captcha I want to call a function. I use a div with ...
4
votes
1
answer
8k
views
Invisible recaptcha Programmatically invoke the challenge grecaptcha.getResponse() is always blank on page refresh
I am rendering the google recaptcha widget in my jsp page and programmatically invoking the challenge in my java script when I submit the form.
<script type="text/javascript" id="recaptcha-...
4
votes
2
answers
2k
views
html 5 validation is not working with google invisible recaptcha
I had a basic Html 5 form working fine earlier but after I added google invisible recaptcha to it. Html5 validation stopped working. I surfed a google lot but couldn't find a way to do that
<...
4
votes
2
answers
5k
views
Invisible Google reCaptcha
I know this type of question has been asked before, but I couldn't get the answer. I have a contact form, and I want to implement the new Invisible Google Recaptcha. However, I have used an <input&...
4
votes
1
answer
12k
views
Google reCAPTCHA ERROR for site owner: Invalid site key
I cant get reCAPTCHA v3 working on my website. I have put the right code in from the Google reCAPTCHA v3 website but it shows "ERROR for site owner: Invalid site key" in the bottom right.
I'm only 7 ...
4
votes
1
answer
23k
views
How to validate google recaptcha on client side?
I have implemented google reCaptcha on a login panel showing after 3 unsuccessful login
But I want to validate reCaptcha on a client slide using jQuery on clicking of login button here is the code
&...