Questions tagged [recaptcha]
For questions about the reCAPTCHA service: Designed to protect against spam and abuse by blocking bots while allowing valid users access.
recaptcha
4,440
questions
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
4
answers
41k
views
How to solve the ng serve Error: This command is not available when running the Angular CLI outside a workspace
I'm trying to run ng serve but I am getting
Error: This command is not available when running the Angular CLI outside a workspace.
I have tried opening integrated terminal on VS code, but didn't work....
9
votes
3
answers
12k
views
How to use google recaptcha in nuxt?
I am using nuxt and would like to use this library: https://github.com/nuxt-community/recaptcha-module. But I don't understand how to verify that the user has passed the check. The example doesn't ...
9
votes
1
answer
7k
views
Defer execution until external script has loaded in Vue.js
I want to render a recaptcha after a Vue.js component has mounted. It works on normal load and reload, but when I navigate away to a different url and click the browser back button it throws an error.
...
9
votes
4
answers
7k
views
ReCAPTCHA ajax loaded theme problem
Can not figure out how to theme an ajax loaded recaptcha. The below code does not work.
From Google Recaptcha
Saw this post Recaptcha ajax API custom theme not working, but I am definitely viewing ...
9
votes
2
answers
4k
views
reCAPTCHA-like Web Service in other Languages
Is there a CAPTCHA web service like reCAPTCHA that supports languages other than English?
It would be nice to have localized CAPTCHAs for non-English users.
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 ...
9
votes
1
answer
4k
views
Making recaptcha work with a reverse proxy
I am trying to include a recaptcha verification on a 'forgot password' screen for users that are trying to connect to a mobile hotspot. Prior to logging in, they have very limited access through the ...
9
votes
2
answers
4k
views
Change dynamically Recaptcha V2 language
I trying to implement Recaptcha V2 on an angular site.
I'm using angular translate and I don't know how to regenerate the reCaptcha object with the correct language provided from the $scope
There is ...
9
votes
0
answers
2k
views
'content_security_policy.extension pages': Insecure CSP value "https://google.com" in directive 'script-src'
I am trying to add content security policy to my V3 manifest file for applying reCaptcha v3 to my chrome extension but I keep getting the following error
'content_security_policy.extension_pages': ...
9
votes
0
answers
2k
views
In reCAPTCHA, what data is being sent to Google and how often?
In other words:
When Google is trying to determine whether it's a real user or not (for invisible captcha), which data is collected and how often is it sent to Google?
Which user events are being ...
9
votes
1
answer
2k
views
How to install Google-Recaptcha from npm
I'm implementing recaptcha in my webapp in some forms.
I already implement my backend part and i'm right now trying to install recapatcha api.
Unfornatly, I do not find an official package in npm ...
9
votes
2
answers
11k
views
Google ReCaptcha Uncaught DOMException: Blocked a frame with origin "https://www.google.com"
I'm not sure why this is happening, and it isn't the usual, common error of:
Uncaught SecurityError: Block a frame with origin.
The error I'm getting is:
Uncaught DOMException: Blocked a frame ...
9
votes
2
answers
3k
views
How to use Google's reCAPTCHA in an electron app?
Google's reCAPTCHA is domain specific so when used in an Github's electron app, it gives the following error ERROR for site owner: Invalid domain for site key.
Possibly because in an electron app the ...
8
votes
6
answers
21k
views
How to validate Google reCAPTCHA v2 in django
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 ...
8
votes
2
answers
19k
views
Captcha recaptcha does not work anymore
It was working perfect yestarday but today the captcha does not appear anymore. I debuged the code and I realized that my joomla plugin captcharecaptcha is including this file when rendering the page ...
8
votes
5
answers
7k
views
google reCAPTCHA v3 bottomleft
Reading through the code at https://www.gstatic.com/recaptcha/api2/v1531759913576/recaptcha__en.js there are numerous references to bottomleft (as opposed to bottomright where the icon is generally ...
8
votes
2
answers
13k
views
How do I fake a recaptcha in a unit test?
I'm using Rails 5 and have a form with a Google recaptcha. I use the Rails gem for this
gem "recaptcha", require: "recaptcha/rails"
So I have a simple form with
<%= form_for @comment, :html =&...
8
votes
4
answers
33k
views
Verifying RECAPTCHA with jQuery
I'm trying to verify a Recaptcha using jQuery, but I keep getting an error telling me: Access to restricted URI denied" code: "1012
This is what I've tried so far:
var challengeVal = $("#...
8
votes
5
answers
42k
views
How to click on the reCAPTCHA using Selenium and Java
Why am I getting errors when trying to get the driver to click on the reCAPTCHA button?
This is the site where I am trying to get it to work: https://rsps100.com/vote/760/
This is my current code so ...
8
votes
2
answers
4k
views
How to set recaptcha key settings at runtime
I'm implementing the recaptcha control from google.
I built a simple c# test project from their example and all works. Now, instead of having the PublicKey and PrivateKey in the aspx page, I'd ...
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
3
answers
24k
views
Recaptcha V3 assets cause Pagespeed issues - how to defer
We're currently using Google Recaptcha V3 across the public-facing portions of our site - while doing Pagespeed Insights performance testing (Mobile), Google themselves is reporting unused/undeferred ...
8
votes
2
answers
13k
views
How can I use reCAPTCHA v2 on a large number of domains?
The previous version of reCAPTCHA provided the option to make a global key which would work on any domain. Now, in version 2, that option is gone, and the reCAPTCHA site claims that "Global Keys are ...
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
7
answers
12k
views
Recaptcha disappears during PostBack
I have seen a couple of other posts on here regarding the use of Recaptcha with ASP.net UpdatePanels but have not yet found an answer that solves my problem.
Here is my ASPX code :
<asp:...
8
votes
5
answers
6k
views
angular-recaptcha: Change language with site language change
I have website which uses three different languages switchable by user. Language switch is done on client side by JavaScript (AngularJS).
I am using reCAPTCHA 2 on my website and need to change ...
8
votes
4
answers
2k
views
Is email address validation really needed to validate new users?
I've been looking at reddit.com and they don't require new users to enter an email address. Instead, they only require users to enter a captcha.
I've been considering only using recaptcha to verify ...
8
votes
1
answer
7k
views
Use google recaptcha with Angular and WebAPI
I'm using Angular js front end application and web API backend. I want to use google recaptcha in the front end application. I can get widget displayed by referring following URL. https://developers....
8
votes
1
answer
2k
views
What is the proxy for in recaptcha configuration?
I am using the recaptcha gem in Rails 3.1.0. I am following the instructions on the github page: https://github.com/ambethia/recaptcha
I have acquired the keys and am configuring recaptcha as shown ...
8
votes
2
answers
5k
views
Can Google Re-Captcha 2 prevent CSRF attacks?
A Cross-Site Request Forgery attack rides on the victim's session to submit malicious requests to a trusted site. The Cheat Sheet here describes CAPTCHA as a good way to prevent CSRF attacks.
As we ...
8
votes
2
answers
5k
views
reCAPTCHA Ajax API + custom theme not working
I can't see where I'm going wrong. I've tried everything I could think of, reCAPTCHA is just not working with the Ajax API. Here's what my code looks like:
<!-- this is in <head> -->
<...
8
votes
2
answers
10k
views
The new Google Invisible reCaptcha - invisible or not?
Google announced Invisible ReCAPTCHA is coming soon. For now, if you want to integrate the new reCAPTCHA to your site or app you can register here.
I do have 2 site keys whitelisted for the new ...
8
votes
6
answers
5k
views
How do I display the captcha icon only on certain pages (VUE reCAPTCHA-v3)?
I use this package : https://www.npmjs.com/package/vue-recaptcha-v3
I add on my main.js :
import { VueReCaptcha } from 'vue-recaptcha-v3'
Vue.use(VueReCaptcha, { siteKey: 'xxxxxxx' })
I add this ...
8
votes
2
answers
15k
views
How can I reload reCaptcha v3?
I saw Google Docs and didn't found information about reloading reCaptcha v3.
https://developers.google.com/recaptcha/docs/v3
How can I do that?
8
votes
2
answers
20k
views
Google reCaptcha reset in TypeScript
I'm developing Angular 2 + TypeScript app.
I need to reset reCaptcha if form is invalid.
But in my typescript code when I write grecaptcha.reset();, I get error: Can not resolve symbol 'grecaptcha'
...
8
votes
2
answers
2k
views
What is the secure and standard way of testing form submissions with reCaptcha?
I have a lot of views with different forms, some forms have reCaptcha protection and some don't. Forms that have reCaptcha protection are critical (register, login, restore etc) and that's why they ...
8
votes
1
answer
416
views
How to verify recaptcha in server call?
SITUATION:
I used to check my recaptcha with a simple form submit with POST to "/login".
I need to change my implementation for security reasons and would like to do something like:
1) Jquery form ...
8
votes
2
answers
2k
views
How to include reCAPTCHA v3 in the background of pages?
In the reCAPTCHA v3 docs, it says
reCAPTCHA works best when it has the most context about interactions with your site, which comes from seeing both legitimate and abusive behavior. For this reason,...
8
votes
1
answer
4k
views
AWS-Cognito bot prevention with google reCaptcha
My problem is the POST-Request if the user is a bot or human.
It's not possible to send the request form Client-side, otherwise u will get an error on the OPTIONS request:" (response to preflight ...
8
votes
2
answers
4k
views
Googles recaptcha gives "Uncaught SecurityError" after successful validation in my SPA
I use Google new recaptcha, //www.google.com/recaptcha/api.js for human verification. I have a SPA application using Angular. After successful verification any ajax call to server generates this ...
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
1
answer
3k
views
How do I display Google reCAPTCHA v2 in a Chrome Extension browser action?
I'm building a Chrome Extension that interacts with an API that I wish to protect using Google recatcha, as I'm intending for it to be used beyond just the Chrome Extension. The API side is working, ...
8
votes
2
answers
1k
views
Make google Recaptcha work with special characters in the domain name
I was setting up an API key for a site with the swedish charachter ä in the domain name (http://sälja.io) but it did not initialize the recaptcha.
Then trying an api key for the equivalent url http://...
8
votes
2
answers
8k
views
How do I implement ReCaptcha in a Single Page Application (SPA)
I have a Single Page Application (SPA) I would like to add ReCaptcha to.
This application is hosted using IIS as flat Html, Css & Javascript, this SPA in turn talks to a separate REST server (...
8
votes
2
answers
2k
views
Sample usage of gatsby-plugin-recaptcha
I have to use gatsby-plugin-recaptcha for forms in my project. I am not able to find any example of usage of this plugin. It will be big help if someone can share any information regarding this.
...
8
votes
3
answers
2k
views
Google reCaptcha verification popup not displaying properly in Mat Dialog
I added google reCaptcha in angular material dialog form. But when reCaptcha opens verification popup, it display above the form like in pic.
I also found that whenever mat dialog opens it adds the ...
8
votes
1
answer
950
views
Test for bad reCAPTCHA sitekey with javascript
Is there a way to programmatically test (with javascript) whether or not a Google reCAPTCHA sitekey is valid? For example, when an invalid sitekey is provided to reCAPTCHA, the following error ...
8
votes
1
answer
2k
views
Google reCaptcha 2 TypeError: a is null after calling grecaptcha.reset
I have an AJAX based registration page which validates on both the client and the server.
When the server side validation fails the AJAX returns the errors to the screen and attempts to reset the ...