captcha

How to refresh captcha image on page refresh/load?

旧时模样 提交于 2019-12-03 15:54:48
I want to force my site to refresh the captcha image everytime it loads, so I have a javascript method triggered with the onload() event. Here I have the following line: document.getElementById('yw0_button').click; Firebug doesn't detect any errors, and for testing purposes I have added an alert right after the displayed line, and the alert pops up each time the page is loaded. However, the image doesn't refresh! This is what I believe is relevant about the view file: <?php if(extension_loaded('gd')): ?> <div class="row"> <?php echo $form->labelEx($model,'verifyCode'); ?> <div> <?php $this-

PRIMEFACES - How to refresh a <p:graphicImage> from clicking a <p:commandButton>?

≯℡__Kan透↙ 提交于 2019-12-03 13:56:39
I'm considering this showcase: http://www.primefaces.org/showcase/ui/dynamicImage.jsf in particular the sub-case "GraphicText on-the-fly". My problem is implementing an extended version of this sub case with the addition of a . When the button is pressed i need that the image change dinamically. In the DynamicImageController class I re-writed the getter associeted with the graphicImage: public StreamedContent getGraphicText(){ double random = Math.random();// a double value with a positive sign, greater than or equal to 0.0 and less than 1.0. if(random>0.5){ BufferedImage bufferedImg = new

New Google reCaptcha: How to change text “I'm not a robot”

别来无恙 提交于 2019-12-03 11:17:33
问题 I've installed the latest Google reCaptcha tool on our yoga website. Now the users are confused about the text "I'm not a robot" that appears next to the checkbox. Most of our users do not know what the word "robot" means in this context and they think the form is broken. They also feel less safe using our form as it is weird to see the word "robot" on a yoga website. How do I change the text "I'm not a robot" to something else that the users understand? The docs appear silent on this point..

How to get generated captcha image using mechanize

北战南征 提交于 2019-12-03 10:39:15
问题 I'm trying to use python and mechanize to send sms from my mobile provider website. The problem is that form has a captcha image. Using mechanize I can get the link to the image, but it's different all the time I access that link. Is there any way to get exact picture from mechanize? 回答1: This is a rough example of how to get the image, note that mechanize uses cookies so any cookies received will be sent to the server with the request for the image (this is probably what you want ). br =

Removing background noisy lines from Captcha Image using PYTHON PIL

牧云@^-^@ 提交于 2019-12-03 10:16:40
问题 I have a processed captcha image(Enlarged) look like : As you can see, the font-size of the "TEXT" is bit larger than the width of the Noisy Lines. So I need an algorithm or code to remove the noisy lines from this image. With the help of Python PIL Library and the chopping algorithm mentioned below I din't get the output image which could be easily read by OCRs. Here's Python code that I tried : import PIL.Image import sys # python chop.py [chop-factor] [in-file] [out-file] chop = int(sys

CAPTCHA in java [duplicate]

房东的猫 提交于 2019-12-03 10:03:45
问题 This question already has answers here : Recommendations for java captcha libraries [closed] (7 answers) Closed 4 years ago . I wanna give a shot at developing a secure login system in Java. How should I implement CAPTCHA using Java? 回答1: The three CAPTCHA libraries I've used for Java are: JCaptcha - This is the most configurable of the three, and pretty well documented. But we can't seem to get this to look right, no matter what. It also does audio and other unconventional CAPTCHAs JCaptcha

How do I set up Scrapy to deal with a captcha

南笙酒味 提交于 2019-12-03 07:15:29
问题 I'm trying to scrape a site that requires the user to enter the search value and a captcha. I've got an optical character recognition (OCR) routine for the captcha that succeeds about 33% of the time. Since the captchas are always alphabetic text, I want to reload the captcha if the OCR function returns non-alphabetic characters. Once I have a text "word", I want to submit the search form. The results come back in the same page, with the form ready for a new search and a new captcha. So I

rails - Choosing captcha plugin [closed]

浪子不回头ぞ 提交于 2019-12-03 01:43:23
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . There are a lot of captchas plugins in Rails and also many types of solutions for preventing spamming and flooding. So it isn't only Rails question. Let's see what types of plugins do we have: 1. Classic image captcha (zendesk's Captcha, Simple_captcha, Validates_captcha,

Is it immoral to put a captcha on a login form?

房东的猫 提交于 2019-12-03 01:33:24
In a recent project I put a captcha test on a login form, in order to stop possible brute force attacks. The immediate reaction of other coworkers was a request to remove it, saying that it was inapropiate for that purpose, and that it was quite exotic to see a captcha in that place. I've seen captcha images on signup, contact, password recovery forms, etc. So I personally don't see inapropiate to put a captcha also on a place like that. Well, it obviously burns down usability a little bit, but it's a matter of time and getting used to it. With the lack of a captcha test, one would have to put

How to get generated captcha image using mechanize

这一生的挚爱 提交于 2019-12-03 01:15:31
I'm trying to use python and mechanize to send sms from my mobile provider website. The problem is that form has a captcha image. Using mechanize I can get the link to the image, but it's different all the time I access that link. Is there any way to get exact picture from mechanize? This is a rough example of how to get the image, note that mechanize uses cookies so any cookies received will be sent to the server with the request for the image (this is probably what you want ). br = mechanize.Browser() response = br.open('http://example.com') soup = BeautifulSoup(response.get_data()) img =