captcha

Integrating Captcha with Spring Security

僤鯓⒐⒋嵵緔 提交于 2019-11-28 22:13:58
问题 What is appropriate way to integrate SpringSecurity with Capcha ? I have following use case : When user will tries to login, if we he failed to login N times, captcha will be displayed, so authentication will be using three parameters : username, password, captcha. But Spring Security doesn't support built in Captcha handling. I just start thinking about implementation. And have following variants: Adding separate security filter in Spring Security filter stack, Entirely rewrite

How to read the text from image (captcha) by using Selenium WebDriver with Java

匆匆过客 提交于 2019-11-28 22:10:52
I have registration webpage but in last captcha is displaying.. I am not able to read the text from image. I am going to mention the code and output .. @Test public void loginTest() throws InterruptedException { System.out.println("Testing"); driver.get("https://customer.onlinelic.in/ForgotPwd.htm"); WebElement element = driver.findElement(By.xpath("//*[@id='forgotPassword']/table/tbody/tr[5]/td[3]/img")); System.out.println(" get the instance "); String elementTest = element.getAttribute("src"); System.out.println("Element : " + elementTest); } Output: Error Exception in thread "main" org

How to use Python plugin reCaptcha client for validation?

被刻印的时光 ゝ 提交于 2019-11-28 19:35:10
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="recaptcha_response_field" value="manual_challenge"> </noscript> I download the reCaptcha Python

Best way to limit (and record) login attempts

别等时光非礼了梦想. 提交于 2019-11-28 18:21:54
Obviously some sort of mechanism for limiting login attempts is a security requisite. While I like the concept of an exponentially increasing time between attempts, what I'm not sure of storing the information. I'm also interested in alternative solutions, preferrably not including captchas. I'm guessing a cookie wouldn't work due to blocking cookies or clearing them automatically, but would sessions work? Or does it have to be stored in a database? Being unaware of what methods can/are being used so I simply don't know what's practical. Use some columns in your users table 'failed_login

Stop spam without captcha

ⅰ亾dé卋堺 提交于 2019-11-28 17:55:31
I want to stop spammers from using my site. But I find CAPTCHA very annoying. I am not just talking about the "type the text" type, but anything that requires the user to waste his time to prove himself human. What can I do here? Requiring Javascript to post data blocks a fair amount of spam bots while not interfering with most users. You can also use an nifty trick: <input type="text" id="not_human" name="name" /> <input type="text" name="actual_name" /> <style> #not_human { display: none } </style> Most bots will populate the first field, so you can block them. Integrate the Akismet API to

Recommendations for a captcha on Ruby on Rails [closed]

强颜欢笑 提交于 2019-11-28 17:53:36
问题 I'd like to implement a captcha in a Rails project for a form submission, but I'm not sure what to go with. I'm inclining towards simplicity of implemention, and reliability when in use, over it being too sophisticated, as my application doesn't require too high a level of security. Anyone have any recommendations? 回答1: The easiest way to add a CAPTCHA to your Rails application is using Ambethia reCAPTCHA : 1. Installation: config.gem "ambethia-recaptcha", :lib => "recaptcha/rails", :source =

What is a good invisible captcha? [closed]

倖福魔咒の 提交于 2019-11-28 16:49:59
问题 What is a good invisible captcha? My site requires JavaScript so anything which requires that is fine. 回答1: Add a new input field, label it "Please leave blank", hide it using CSS, and ignore the post if that field is filled in. Something like this: <style type='text/css'> #other_email_label, #other_email { display: none; } </style> ... <form action='mail'> <label id='other_email_label' for='other_email'>Please leave blank:</label> <input type='text' name='other_email' id='other_email'> ... <

Easy-to-use django captcha or registration app with captcha?

和自甴很熟 提交于 2019-11-28 16:29:06
问题 I want to implement user registration using captcha in Django. The workflow of django-registration app is a great, but it doesn't have captcha. What captcha would you recommend to use with it? Are there some other variants of registration+captcha or useful links on the topic? This should work with Django-1.1 and don't be too hard to install. 回答1: django-registration is pretty extendable. One way to extend it is to provide a custom registration form. I'd recommend to use reCaptcha, e.g. with

ReCaptcha 2.0: enable Submit button on callback if recaptcha successful

孤人 提交于 2019-11-28 15:38:45
I have a very simple form as follows. I want to make it so that the Submit button is disabled, and only enabled after the user has successfully completed the ReCaptcha. I'm assuming I'm going to need some Javascript / jQuery to do this. Google's documentation on ReCaptcha 2.0 seems really sparse and dense (to me, anyway). I'd appreciate some pointers: <form action="something.php" method="post"> Name: <input type="text" size="40" name="name"><br><br> <div class="g-recaptcha" data-sitekey="############-#####"></div> <input type="submit" value="Submit" > </form> panda.o24 i did the same thing on

How to get a form captcha image with Jsoup?

青春壹個敷衍的年華 提交于 2019-11-28 11:38:53
I am developing an application for my school website and I'm using jsoup for parsing the html. I'm facing a problem with captcha image I see this question and I had implemented but I am not getting the same image as is showed in the website. How can I get the same image captcha, the website is using BotDetectCaptcha I am a little confused how can I do it specifically on my website School Website As stated in SLaks comment, you may be missing some cookies. Here is a working example with the provided url: // Load the initial page for getting the required cookies Connection conn = Jsoup.connect(