recaptcha

noCAPTCHA reCAPTCHA disappearing in UpdatePanel

北城余情 提交于 2020-02-04 14:42:53
问题 I'm implementing noCAPTCHA reCAPTCHA into an existing form with VB.Net. It is located within an UpdatePanel and uses server side validation to verify the user has completed the CAPTCHA (See Validating Recaptcha 2 (No CAPTCHA reCAPTCHA) in ASP.NET's server side) If a user fails to the CAPTCHA or any other of the validated fields, the CAPTCHA fails to reload due to postback. How do resolve this and make it so that the CAPTCHA does not disappear after a postback? My CAPTCHA code: <div id=

recaptcha plugin for rails

拈花ヽ惹草 提交于 2020-02-02 05:49:13
问题 I am currently using ambethia's recaptcha plugin for rails. I want to disable the message "incorrect-captcha-sol" whenever the user incorrectly enters the wrong recaptcha. How should I go about doing this? In the source file I get the following tags surrounding the error message <p class="recaptcha_error">incorrect-captcha-sol</p> 回答1: The plugin sets the flash (more precisely flash[:recaptcha_error]), i.e. it won't display message automatically. Most likely you have a piece of code that

Google recaptcha V2 supported content types

 ̄綄美尐妖づ 提交于 2020-02-02 04:14:05
问题 When querying the state of the "I'm not a robot" user challenge, you have to make a POST request to https://www.google.com/recaptcha/api/siteverify passing your secret key and the response token to know the result of the challenge. But it is undocumented which Content-Type s (MIME types) are supported. I guess every common MIME type is supported (application/x-www-form-urlenconded, application/json, application/xml), but, just for curiosity, Which are the Content-Type s supported by

ERROR: Invalid domain for site key reCaptcha

夙愿已清 提交于 2020-01-30 12:22:17
问题 I registered my domain and added the key but want to test the site on my local machine. I publish the project on my machine to wwwroot and at the moment it runs on port number 8080. I get the error ERROR: Invalid domain for site key reCaptcha when trying to run it on my local machine. Is there a way testing this on the local machine? 回答1: Check your domains at https://www.google.com/recaptcha/admin, if you are using localhost you most set your domain to "localhost". 来源: https://stackoverflow

Google App Engine Golang - how to get user's IP address?

我们两清 提交于 2020-01-29 02:54:25
问题 I want to integrate ReCAPTCHA to my GAE Golang web application. In order to verify a captcha, I need to get user's IP address. How can I fetch user's IP address from a form post? 回答1: inside your handler function call r.RemoteAddr to receive ip:port like this: func renderIndexPage(w http.ResponseWriter, r *http.Request) { ip := strings.Split(r.RemoteAddr,":")[0] } update 02/15/2017 as @Aigars Matulis pointed out, in current version there is already a function todo this ip, _, _ := net

Google App Engine Golang - how to get user's IP address?

泄露秘密 提交于 2020-01-29 02:53:02
问题 I want to integrate ReCAPTCHA to my GAE Golang web application. In order to verify a captcha, I need to get user's IP address. How can I fetch user's IP address from a form post? 回答1: inside your handler function call r.RemoteAddr to receive ip:port like this: func renderIndexPage(w http.ResponseWriter, r *http.Request) { ip := strings.Split(r.RemoteAddr,":")[0] } update 02/15/2017 as @Aigars Matulis pointed out, in current version there is already a function todo this ip, _, _ := net

How to hide recaptcha for JavaScript enabled browsers and pass html validation

蹲街弑〆低调 提交于 2020-01-25 03:40:30
问题 I wish to use recaptcha for only non-JavaScript enabled browsers. To do so, I tried using the <noscript> tag as shown below. <!DOCTYPE html> <html> <head> <title>recaptcha</title> </head> <body> <noscript> <?php require_once('recaptcha-php-1.11/recaptchalib.php'); echo recaptcha_get_html('xxx'); ?> </noscript> <p>Done</p> </body> </html> When validating the code using http://validator.w3.org, I received the following errors: Error Line 11, Column 11: The element noscript must not appear as a

Content security policy blocking requests to *://www.google.com/recaptcha/api

僤鯓⒐⒋嵵緔 提交于 2020-01-24 19:38:08
问题 In light of this link , it would seem inline scripts such as are used for inserting a recaptcha object in the page, via <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=your_public_key"> </script> <noscript> <iframe src="http://www.google.com/recaptcha/api/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="recaptcha_response

Using Recaptcha with EPiServer XForms

百般思念 提交于 2020-01-24 17:40:27
问题 Does any one have experiense of using Recaptcha with XForms in EPiServer? I don't know where to put the Recaptcha control and how to make it work. The sample code for ASP.NET is the code below. Where should i put it. My guess is in the FormControl_BeforeSubmitPostedData ? <%@ Page Language="VB" %> <%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %> <script runat=server%gt; Sub btnSubmit_Click(ByVal sender As Object, ByVal e As EventArgs) If Page.IsValid Then

Possible to use reCAPTCHA on a site without HTTPS?

一世执手 提交于 2020-01-24 16:25:24
问题 I have a simple informational site that has no ecommerce aspects. It has a comment submission form that I'd like to protect with reCAPTCHA. Is there any way to use reCAPTCHA without converting the site to HTTPS (at increased cost for certificate and hosting) ? 回答1: yes you can they have a javascript api for that also you can verify the response from serverside! https://developers.google.com/recaptcha/docs/display 来源: https://stackoverflow.com/questions/50320279/possible-to-use-recaptcha-on-a