recaptcha

ERROR:Invalid domain for site key

杀马特。学长 韩版系。学妹 提交于 2019-12-18 05:18:05
问题 I need your help regarding reCaptcha. Recaptcha works well on localhost, but when I try accessing it from a different machine it gives me this error ERROR:Invalid domain for site key yet I am using the same keys generated from reCaptcha site 回答1: If you want to run reCaptcha on localhost you should use secure token like described here: google secure token documentation this solved my own localhost problem. Previously I had an error message "Invalid domain for site key". This may be because

How to generate a Google ReCaptcha V2 secure token with PHP?

只谈情不闲聊 提交于 2019-12-18 03:36:45
问题 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 way to check why it doesn't work. There is a working Java example (STokenUtils.java), but I find myself unable to translate it to PHP. public static function generateSecurityToken($secretKey){ $stoken = array( 'session_id' => session_id(), 'ts_ms' => round(microtime(true)*1000) ); $secretKey =

How to use Python plugin reCaptcha client for validation?

怎甘沉沦 提交于 2019-12-17 23:07:33
问题 I want to make a captcha validation. I get the key from the recaptcha website and already succeed to put the public key to load the webpage with the challenge. <script type="text/javascript" src="http://api.recaptcha.net/challenge?k=<your_public_key>"> </script> <noscript> <iframe src="http://api.recaptcha.net/noscript?k=<your_public_key>" height="300" width="500" frameborder="0"></iframe><br> <textarea name="recaptcha_challenge_field" rows="3" cols="40"> </textarea> <input type="hidden" name

Find the reCAPTCHA element and click on it — Python + Selenium

荒凉一梦 提交于 2019-12-17 17:18:05
问题 I need some help. There is URL: https://www.inipec.gov.it/cerca-pec/-/pecs/companies. I need to click checkbox Captcha: My code is look like: import os, urllib.request, requests, datetime, time, random, ssl, json, codecs, csv, urllib from urllib.request import Request, urlopen from urllib.request import urlretrieve from datetime import datetime from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import NoSuchElementException from

How to Validate Google reCaptcha on Form Submit

早过忘川 提交于 2019-12-17 08:30:08
问题 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 will ignore the reCaptcha. Before you had to send the form to a PHP file with the private key et al, but I'm not seeing any mention of that in their Developer's Guide. I have no idea how to validate the form to be sure the new reCaptcha was filled by the user. Am I missing something? Is that PHP file

How to validate Google reCAPTCHA v3 on server side?

这一生的挚爱 提交于 2019-12-17 03:49:24
问题 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 form is sent even if the captcha is not valid. require_once('recaptchalib.php'); $privatekey = "my key"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { $errCapt='<p style="color:

Has reCaptcha been cracked / hacked / OCR'd / defeated / broken? [closed]

人盡茶涼 提交于 2019-12-17 02:53:11
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . Have any programming methods have been used to defeat reCAPTCHA? I'm interested in seeing evidence and potentially demonstrations that reCAPTCHA in

Google NoCaptcha ReCaptcha only shows up on refresh in Angular SPA

不羁岁月 提交于 2019-12-14 00:32:45
问题 I noticed that my new ReCaptcha only showed up "sometimes" so I tried to track it down. I have a SPA using Angular and when loading on the "/contact" page, the ReCaptcha shows up. If I load into any other page and try to navigate to the "/contact" page the ReCaptcha is not there, but if I refresh on that page, it appears again. Navigating away and returning to this page will cause it to disappear again. My setup is similar to the following: index.html <html ng-app="App"> <head> <meta charset=

Unable to reliably use Google reCAPTCHA 2.0 and jquery 2.1.4 because of IE compatibility issues

北慕城南 提交于 2019-12-13 21:23:00
问题 I am struggling to find a way to get Google's reCAPTCHA 2.0 to reliably work for IE users. Some IE users are getting the message: " Please upgrade to a supported browser to get a reCAPTCHA challenge. " Many posts here and elsewhere say to add the following meta tag to the page, which I have done: <meta http-equiv="X-UA-Compatible" content="IE=edge;" /> Adding this tag did not fix the problem and asking users of the site to try and change their browser settings is not an option. Is there

C# MVC3: website loaded over HTTPS cannot load recaptcha security code. Chrome debugger gives a “Mixed Content error”

北慕城南 提交于 2019-12-13 21:17:34
问题 I have a C# MVC app that makes use of recaptcha security code in a particular view. In my view i have the following code: <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> ... @Html.Raw(Html.GenerateCaptcha("captcha", "white")) @Html.ValidationMessage("captcha") When i try to load the page, i get the following error in chrome's debugger: Mixed Content: The page at 'https://mywebsite.com' was loaded over HTTPS, but requested an insecure