captcha

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

感情迁移 提交于 2019-11-27 14:15:27
问题 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(

Adding Captcha to Symfony2 Login Page

北战南征 提交于 2019-11-27 13:44:36
I am new to Symfony2 but read about it very much. First of all, I am using symfony 2.1.7. And FOSUserBundle for user settings. I have already override fos_user-login template, with username and password. But I want to add a captcha for log in. I have seen GregwarCaptchaBundle, and according to document, new field should be added to FormType. And my question comes: Where is the symfony or FOSUserBundle login form type, that i can add this new field, or override it? There exists ChangePasswordFormType, ProfileFormType... etc. but no LoginFOrmType. May be it is so obvious but i did not get the

How to protect html form from spammers?

谁说我不能喝 提交于 2019-11-27 13:18:15
I'm getting problems with spam entries in my database through signup form. I have tried many open source Captcha solution, but still facing same problem. I am therefore looking for an alternative solution. What about the solution, where users would have to input the answer to a question? The answer to the question will be a server-side specific word then would this surely defeat a spambot? Would it be better to have a series of simple randomized questions or something like "6 + ? = 9" be better as a question? The only thing that concerns me is that if it's as easy as this to protect a signup

How to Prevent SPAM without CAPTCHAs or a Centrally managed system (e.g. akismet)

别说谁变了你拦得住时间么 提交于 2019-11-27 12:54:20
Has anyone been able to successfully prevent spam on their site without placing a burden on your visitor (e.g. CAPTCHA) and without using a centralized spam reporting system (e.g. Akismet) I've found this & it looks promising, but doesn't contain detailed deployment instructions. I want to present my web forms without burdening my users with CAPTCHA like technologies, but also actively automate preventing spam. There doesn't seem to exist a detailed instruction/tutorial on how to implement such a technology. Disclaimer Also, I realize there no silver bullet appropriate to preventing spam. But

Best way to limit (and record) login attempts

余生长醉 提交于 2019-11-27 11:17:10
问题 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

How does Google reCAPTCHA v2 work behind the scenes?

走远了吗. 提交于 2019-11-27 09:59:14
This post refers to Google ReCaptcha v2 (not the latest version) Recently Google introduced a simplified "captcha" verification system ( video ) that enables users to pass the "captcha" just by clicking on it. But how can it differentiate a bot from a person just by a click? As per this answer , (assuming a similar implementation), at first "recaptcha" generates a hidden key and attaches it to a hidden input element and also lazily renders a check box (not an actual check box input but a div ) with the same key which when clicked, sends an asynchronous request (XHR) to the Google backend

ReCaptcha 2.0: enable Submit button on callback if recaptcha successful

喜夏-厌秋 提交于 2019-11-27 09:13:43
问题 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="####

Scrapy with dynamic captcha

那年仲夏 提交于 2019-11-27 08:15:14
问题 I'm trying to break a captcha within a form from a website, but this captcha is dynamic, it doesn't have a URL instead it has something like this src="captcha?accion=image" What is the best option here? I have read something like using middlewares or something like that. Also I know it can be done with Selenium or Splash or another browser driver (screenshot), but i want to do it with just Scrapy , if it's possible of course. 回答1: Here's a complete solution to bypass the specified captcha

How to get a form captcha image with Jsoup?

痴心易碎 提交于 2019-11-27 06:19:41
问题 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 回答1: As stated in SLaks comment, you may be missing some cookies. Here is a working example with

How can I avoid google mail server asking me to log in via browser?

◇◆丶佛笑我妖孽 提交于 2019-11-27 04:15:18
问题 I am trying to send emails from Django using an email configured by Google Apps, my configuration at the settings.py file looks something like this: EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'contact@mydomain.com' EMAIL_HOST_PASSWORD = 'password' EMAIL_PORT = 587 EMAIL_USE_TLS = True When I try to send an email using: from django.core.mail import send_mail send_mail("Happy new year", "We wish you the best for 3001", "contact@mydomain.com", ["someuser@gmail.com"]) I get the following