recaptcha

Using Google's reCaptcha to protect download link from bots

自作多情 提交于 2019-12-06 12:02:42
问题 I've tried to insert a download link into a form with a reCaptcha (as per Google's instructions) but the submit button opens the link even if you don't pass the captcha challenge. The code is very simple: <head> <script src='https://www.google.com/recaptcha/api.js'></script> </head> <body> <form action="download link"> <input type="submit" value="download"> <div class="g-recaptcha" data-sitekey="xxx"></div> </form> </body> JSFiddle Does anyone know why this isn't working? Thanks! 回答1: I think

ExtJS 4 recaptcha form

China☆狼群 提交于 2019-12-06 11:18:50
I have set up a key and can get the recaptcha to show on the page it self but I don't know how to get it into a form. Actually I don't want to use an id since I'll be reusing this later inside the app too so to use itemId would be preferred.I'm assuming that the element hasn't been created yet. My include: HTML Code: <script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> Error (generated from recaptcha_ajax.js. Can't get the control with id 'recaptcha'): Uncaught TypeError: Cannot set property 'innerHTML' of null Here's the code: Ext.define(

How to validate a ReCaptcha response server side with Python?

柔情痞子 提交于 2019-12-06 10:16:10
I'd like to check a response from client generated using react-google-recaptcha in my Signup form. Unfortunately, I don't see how to validate it server side with Python. I tried recaptcha-client : https://pypi.python.org/pypi/recaptcha-client , but it seems that it's expecting a response from a generated iframe directly with the same library. dbrrt It was actually quite straightforward, and no library is required to perform this verification, following Google's documentation : https://developers.google.com/recaptcha/docs/verify I just had to encode my parameters in the address and send a

Operation timed out error

雨燕双飞 提交于 2019-12-06 09:58:01
I am hitting a wall with reCaptcha.net Some background - I am using reCaptcha-dotnet v1.0.5 which I got from http://code.google.com/p/recaptcha/downloads/list?q=label:aspnetlib-Latest . I was able to develop a site and make it work locally with reCaptcha validation. When I deploy it to the server (the site is hosted on 1and1.com), I am getting the error below - The operation has timed out Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception

reCaptcha is rendered in the most right bottom cornver for some reason

为君一笑 提交于 2019-12-06 08:25:02
My ajax form with recaptcha, simplified code: <form> <input type="email" placeholder="Email" required="true" /> <input type="submit" value="Create account" /> <div class="g-recaptcha" data-sitekey="12345" data-size="invisible"></div> </form> For some reason, it renders the reCaptcha somewhere in the right bottom corner, under the footer. Why is that and how to fix it? Since you are using "invisible" recaptcha, you can pass data-badge attribute in HTML element to recaptcha api. data-badge can take three values - bottomright , bottomleft and inline . bottomright is default if this attribute is

Correct way to integrate reCAPTCHA with Angular 4

寵の児 提交于 2019-12-06 08:08:47
I'm trying to integrate an Invisible reCAPTCHA with my Angular 4 form. In the TS part of the component I have a function like this: onSubmit(token: string) { alert(token); } And my HTML looks like this (only the relevant parts shown): <form (ngSubmit)="onSubmit()" #myForm="ngForm"> <button type="submit" class="btn g-recaptcha" data-sitekey="mykey" data-callback="onSubmit">Submit</button> </form> When clicking on that button I get either an alert saying the token is undefined, or I get an error message like this: "Cannot contact reCAPTCHA. Check your connection and try again." Not really

Google reCAPTCHA response success: false, no error codes

爱⌒轻易说出口 提交于 2019-12-06 07:55:23
问题 UPDATE: Google has recently updated their error message with an additional error code possibility: "timeout-or-duplicate". This new error code seems to cover 99% of our previously mentioned mysterious cases. We are still left wondering why we get that many validation requests that are either timeouts or duplicates. Determinining this with certainty is likely to be impossible, but now I am just hoping that someone else has experienced something like it. Disclaimer: I cross posted this to

one word recaptcha?

我是研究僧i 提交于 2019-12-06 06:42:07
问题 hello i see facebook is using recaptcha, but somehow in their register page, they can show one word of captcha instead of two, and then i notice that repcatcha validate only the first word, and the second word acts as a dummy, the question is can we somehow tell the recaptcha to just show one word ? rather then two ? 回答1: No. But if a computer can't read such a CAPTCHA, how does the system know the correct answer to the puzzle? Here's how: Each new word that cannot be read correctly by OCR is

Recaptcha google on angular 6 implementation

旧城冷巷雨未停 提交于 2019-12-06 06:29:15
问题 im trying to implement recaptcha2 in angular but i dont know where i put the step 3 in my code https://www.npmjs.com/package/angular-google-recaptcha im creating a form that need this,here's where i put the captcha: <div class="form-group-log text-center but-form"> <div class="g-recaptcha" data-sitekey="" data-callback="enableButtonEnviar"> </div> <button type="submit" disabled="disabled" class="btn btn-outline-primary btn-block btn-w-240 " id="Btn-enviar" data-dismiss="modal"> Entrar <

How do I correctly Re-render a Recaptcha in ASP.NET MVC 2 after an AJAX POST

空扰寡人 提交于 2019-12-06 06:22:26
问题 Ok... I've downloaded and implemented this Recaptcha implementation for MVC which uses the ModelState to confirm the validity of the captcha control. It works brilliantly... except when I start to use it in an AJAX Form. In a nutshell, when a div is re-rendered with AJAX, the ReCaptcha that it should contain does not appear, even though the relevant <scripts> are in the source after the partial render. Code Below. using (Ajax.BeginForm("CreateComment", "Blog", new AjaxOptions() { HttpMethod =