recaptcha

Change New Google Recaptcha (v2) Width

ε祈祈猫儿з 提交于 2019-12-28 04:51:05
问题 We've just started to implement the new google recaptcha as listed https://www.google.com/recaptcha/intro/index.html However the new method seems to be contained within an iFrame rather than embedded into the page thus making applying CSS more difficult. However we've got our form which is 400px wide so would like to have the recaptcha the same width. Currently it looks like, however we'd like it the same with as the rest. Does anybody know how to do this yet? Thanks 回答1: Here is a work

How can I make reCAPTCHA a required field?

天大地大妈咪最大 提交于 2019-12-28 03:45:12
问题 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 solved. How do I validate that the CAPTCHA component has been solved when submitting my form? Or, in other words, how do I make my CAPTCHA component required? 回答1: if you want to use the native html5 popups, than here is the solution JavaScript: window.onload = function() { var $recaptcha = document

Google Recaptcha check timeout due to IPv6 issue - php on IIS

爷,独闯天下 提交于 2019-12-25 18:37:51
问题 I'm using google recaptcha v2 on my websites (html / php). On the server side I am trying to contact google recaptcha to check the user's input: $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$privatekey."&response=".$_POST['g-recaptcha-response']); The line above is not working. It normally just times out. Occasionally it will work though. IPv6 is the Issue It appears to be an issue with the call to google resolving to IPv6 (from https://github.com

Entering recaptcha only once on form validation fail?

安稳与你 提交于 2019-12-25 09:47:52
问题 I have a form which has a few fields and a recaptcha code at the end. When the user submits the form, the recaptcha field is validated along with the other fields on server side (PHP). If the any of the fields are invalid, the user is redirected to the same form with errors. However, the problem is : The user has to enter the recatpcha again. Is there any way I can NOT ask the user to enter the recaptcha again if the form validation fails but captcha validation is successful ? 回答1: Sure there

How to implement recaptcha 2.0 on ASP.NET?

僤鯓⒐⒋嵵緔 提交于 2019-12-25 08:15:07
问题 I want to implement recaptcha 2.0 on my web page. I followed the steps from there by putting on client side: <script src='https://www.google.com/recaptcha/api.js'></script> and: <div class="g-recaptcha" data-sitekey="my_data-sitekey"></div> but, as far I understood, that's not enough. There is also something which must be done on server side. What and how should I do? 回答1: You have to get an api in order to use this google service. https://developers.google.com/recaptcha/docs/start 回答2: Here

reCaptcha Issues with Ajax

霸气de小男生 提交于 2019-12-25 06:24:02
问题 I'm implementing reCaptcha, and I'm using an Ajax call to a PHP page of mine to check the validity of the captcha, without a page refresh. I have this jQuery code: $.post('php/captcha.php', $('#captchaPost').serialize(), function(data){ if(data != "Valid") { $('#captchaError').show(); $captchaFlag = "Invalid"; } else { $('#captchaError').hide(); $captchaFlag = "Valid"; } }); And this PHP code for the post handler: <?php require_once('recaptchalib.php'); $privatekey = "1234567890"; $resp =

Install Info For Google reCaptcha on Contact Form PHP File

蓝咒 提交于 2019-12-25 04:07:07
问题 I am trying to install the Google reCaptcha for a Contact page and I have really limited knowledge with php. I'm unsure as to where the information Google requires should go in my php file. Here are Google's instructions for that: When your users submit the form where you integrated reCAPTCHA, you'll get as part of the payload a string with the name "g-recaptcha-response". In order to check whether Google has verified that user, send a POST request with these parameters: URL: https://www

SocketException and WebException on getting JSON response for reCAPTCHA

南笙酒味 提交于 2019-12-25 02:22:54
问题 I'm getting the following exceptions when getting the JSON response from reCAPTCHA: SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 172.217.28.228:443 WebException: Unable to connect to the remote server My server-side validation is as follows: string secretKey = ConfigurationManager.AppSettings["Captcha.SecretKey"]; string url =

ReCaptcha: “The bind parameter must be an element or id”

做~自己de王妃 提交于 2019-12-25 01:44:45
问题 ReCaptcha has stopped working on our knockout site. I get the following error in the console: Uncaught Error: The bind parameter must be an element or id at kr (recaptcha__en.js:369) at nr (recaptcha__en.js:373) at Object.or [as render] (recaptcha__en.js:374) at loadReCaptcha (KnockoutBindings.js:135) at KnockoutBindings.js:143 I have a custom binding to handle the ReCaptcha. <div id="reCaptcha" data-bind="reCaptcha: {key: 'my-key', callback: reCaptchaResponse}"></div> Handled by: ko

Error for the site owner Google site owner

浪子不回头ぞ 提交于 2019-12-25 00:04:54
问题 I am stuck to the following problem and getting error on recaptcha. The error which is i am getting is "ERROR for site owner: Invalid site key". Can any one respolve the problem. Here is the screenshot and attached code in shopify which I am using. <script src='https://www.google.com/recaptcha/api.js'></script> <div class="row"> {% include 'custom_breadcrumb' %} <div class="col-md-3"> <div class="sidebar-pages"> {% include 'sidebar-pages' %} </div> <!-- side bar condition for Happiness