recaptcha

Can't push to Heroku because of DOTENV uninitialized constant error

和自甴很熟 提交于 2019-12-06 03:40:39
I am trying to push my project up to Heroku. I have been using: gem 'dotenv-rails', :groups => [:development, :test] Because I am using recpatcha and need to export my keys to the app in development. When I try to push the code to heroku I noticed this error message: remote: ! NameError: uninitialized constant Dotenv So I commented out the Dotenv gem and any Dotenv variables in the app. I ran $ bundle exec rake -P Then tried the push again. I am still getting the same error from Heroku. Do I need to reset my gemfiles somehow? Ok, so the answer in the end was that I needed to change gem 'dotenv

Recaptcha IP addresses

纵然是瞬间 提交于 2019-12-06 03:20:51
Okay, so we implement Recaptcha in production. We get errors because it can't reach the IP address it needs to use the service. We open a port for the IP address to reach Google. No problem. We do that and configure that IP address explicitly to work. It works great. Then, the next day, we start getting errors again because Recaptcha is using a different IP address. I can allow requests from that IP address, too, but now I'm unsettled. Where are these addresses coming from? How do I configure this to work reliably? Recatpcha from Google can use any Google IP address and there are lots of them.

How to manually call (find) the ReCaptcha Callback function?

别说谁变了你拦得住时间么 提交于 2019-12-06 00:18:21
I'm currently experimenting with captcha solving, and have decided to use the popular 2captcha service to do so. Their approach is to send them the recaptcha values (google recaptcha key & site thread), then they solve it and send me back the finished value that is supposed to be sent to google to check that the captcha have been solved. I'm stuck on the last step; using the returned solved value and send it to google. As the docs https://2captcha.com/2captcha-api#callback explain, I find no "submit" button hence need to find the recaptcha callback function myself, so I can call it. I do

IE6 does not parse the loaded JavaScript file (Recaptcha hosted by Google)

99封情书 提交于 2019-12-06 00:10:28
This is a really strange issue, I am trying to use the Recaptcha on one of the website, and it works for all browsers tested except for IE6. I have made a reference to the google's js: http://www.google.com/recaptcha/api/challenge?k=the_key and it is loaded according to fiddler2 & the 'onreadystatechange' event (which have a readystate == 'loaded') The normal work flow should be the loaded JS been parsed, and another js been requested, then the image loaded from google. my problem is that the first loaded JS file (content similar to below): var RecaptchaState = { site : 'xxxxxxxxxxxx',

Laravel reCaptcha integration

喜夏-厌秋 提交于 2019-12-05 22:12:36
I would like to implement reCaptcha in my Laravel project without using Laravel packages. I have tried with classical reCaptcha V2 which works, but I would like to implement invisible reCaptcha instead. So what I did is this: <form id="subscribeForm" class="form-inline" role="form" method="post" action="/subscribe" style="margin-bottom:70px;"> ... ... <button type="submit" class="btn btn-default">{{trans('content.input_submit')}}</button> <div id="recaptcha" class="g-recaptcha" data-sitekey="---my---key---" data-size="invisible" data-callback="onSubmit"></div> <script> ...callback functions...

reCAPTCHA: why can't I check the same result twice?

北慕城南 提交于 2019-12-05 20:42:07
问题 I mean if I check first clients input and it is OK the second check of the same input is always false... Why is that? I really need ability to check it twice (one for client side validation and second for server side validation) Thanks in advance!!! EDIT Clarifying: If user's input is ok and recaptcha returns true (I do it through ajax to my server which sends request to recaptcha's server) the form is submitting and sends via POST also 2 variables: recaptcha_challenge_field value and

reCAPTCHA - to appear after press submit

 ̄綄美尐妖づ 提交于 2019-12-05 20:03:42
I wanna use reCAPTCHA for my form. The user must fill the form and then press "Submit". After this, under the "Submit"-Button, reCAPTCHA should appear. How I can do this? If I were to want something like this, I would probably preload the reCAPTCHA into a jQuery dialog . I think a user might get confused by a Captcha just appearing seemingly at random on the page when they press a button, but having a dialog come up to confirm some information is not unusual. I just needed to do what you wanted, so initially keep reCaptcha hidden and show it on submit. So I've hidden it with CSS: div[id*='g

reCaptcha issues : No 'Access-Control-Allow-Origin' header is present on the requested resource always shows even I have add header in angularJS

青春壹個敷衍的年華 提交于 2019-12-05 19:47:42
问题 i have some issues in google reCaptcha The captcha is fine, it's show normally, but when I submit it, I have connection issues when I send a POST request to https://www.google.com/recaptcha/api/verify here the error log: XMLHttpRequest cannot load https://www.google.com/recaptcha/api/verify. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3002' is therefore not allowed access. The response had HTTP status code 405. here my html code: <div

Google NoCaptcha ReCaptcha only shows up on refresh in Angular SPA

我与影子孤独终老i 提交于 2019-12-05 17:53:49
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="UTF-8"> <base href="/"> <title>...</title> <!-- STYLES --> <link rel="stylesheet" type="text/css" href

Increase reCAPTCHA session timeout

北城余情 提交于 2019-12-05 17:29:59
问题 I'm using the Google reCAPTCHA component and have been asked to increase the session timeout. I couldn't find any solution for this. Can it be done? Many thanks. 回答1: I'm afraid there's no solution for this, as the reCAPTCHA challenge is served from Google, so the session is not between your app and the user but with the reCAPTCHA service and the user. Think of reCAPTCHA as a multi-tenant web app (where each tenant is the site that's displaying it), and the only settings available to each