captcha

Stop spam without captcha

拥有回忆 提交于 2019-12-29 03:20:07
问题 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? 回答1: 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:

python captcha decoder library

微笑、不失礼 提交于 2019-12-28 12:45:32
问题 I need a Captcha decoder for python to read simple image captchas like the following picture: Do you know of a library that can help me read this captcha? If you don't know of a library for reading captchas, could you help me to read this (and others like this) with PIL? 回答1: I hope this captcha is not used anywhere. Following is a dummy way to decode it. Basically what you need are the patterns from 0 to 9 as present in these captchas. From your examples, I have only the patterns for 0 3 4 5

Limiting user login attempts in PHP

南笙酒味 提交于 2019-12-28 04:20:06
问题 I've seen web apps with limitations for user login attempts. Is it a security necessity and, if so, why? For example: you had three failed login attempts, let's try again in 10 minutes!! 回答1: Clarification This is a completion to the other answers. Using a good implemented captcha alongside an anti-bruteforce mechanism using sessions for example. The questioner marked this as accepted assuming that captchas are unreadable by machines (she's almost right) and so it's getting negative points,

Entering recaptcha only once on form validation fail?

安稳与你 提交于 2019-12-25 09:47:52
问题 I have a form which has a few fields and a recaptcha code at the end. When the user submits the form, the recaptcha field is validated along with the other fields on server side (PHP). If the any of the fields are invalid, the user is redirected to the same form with errors. However, the problem is : The user has to enter the recatpcha again. Is there any way I can NOT ask the user to enter the recaptcha again if the form validation fails but captcha validation is successful ? 回答1: Sure there

Javascript form validator conflict with math CAPTCHA

坚强是说给别人听的谎言 提交于 2019-12-25 06:39:41
问题 Here is a basic email form with math Captcha. Captcha is working, but the form validator is not. When I say form validator, I am referring to the required "Name" and "Email" fields. If I remove the Captcha code, the form validator works fine. I think the js code for form validator and js code for Captcha are conflicting with each other somehow. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3

PrimeFaces wizard with captcha

南楼画角 提交于 2019-12-25 06:16:11
问题 I am trying implement <p:captcha> into <p:wizard> PrimeFaces. I found only this post with similar problem, when capcha in a wizard will disappear on invalid input. The proposed solution doesn't work for me. Main question: is possible insert capcha into PrimeFaces wizard by some propper way? Thanks for any replies! 回答1: I didn't come up with a proper solution (the AJAX update of wizard tabs prevents the iframe of the Recaptcha control to be reloaded) but I created a simple workaround: position

cURL Submitting POST fields after page load ( curl_exec )?

匆匆过客 提交于 2019-12-25 05:03:08
问题 I have to create a bot to collect some data from my college website , it uses simeple login with regno and captcha fields , they dont use real captcha , its a fake one ( can be seen in page source ) . So my idea is to use a DOM Parser and fetch it from eg Im a using PHP-Curl to do this job . My Code:` <? $ch = curl_init(); $captch = i will get the value from DOM Parser ( But here is the problem , i have to get it before even executing the page !! ) $fields = "regno=11BTA00&captcha=$captcha";

.NET System.Drawing differences in Windows Server 2008R2 64bit compared to all other windows (image is broken in 2008R2-64 but not other Windows)

吃可爱长大的小学妹 提交于 2019-12-25 03:52:47
问题 I have been given a development PC that has Windows Server 2008R2 64bit (x86) installed, so it is used as a workstation. My development environment is VS2008 targeting .NET3.5 (YES, 2008 !!!) In our website (which is a few years old now) there is a in-house developed Captcha. To cut a long story short, the letters are not outputted on my dev machine 2008R2-64 but on all other windows (our test & live servers are 2003 64bit) and Virtual PC's (2008 32bit NOT R2, XP, Win7) they are. I have seen

Why might this work on my server but not my schools?

折月煮酒 提交于 2019-12-25 03:15:11
问题 I created a captcha just now, and it works PERFECTLY on my own server. On the school's server, it doesn't generate an image. Why might this be? The difference in code is one line. Edit: Originally, it was working, but I deleted the directory by mistake and I do not know why did it suddenly work in the first place. Update: I var_dumped() everything and everything is being set correctly. Source code on school server: Update: I figured it out! I'll post the answer later. 回答1: It is just useless

How can I correctly configure GD support for PHP? I am getting an error calling imagettfbbox()

主宰稳场 提交于 2019-12-24 23:06:38
问题 Using Symfony2.0 and Gregwar Captcha Bundle for Symfony 2.0 Operating System: Mac OS 10.10 (Yosemite) After having installed the CaptchaBundle following the instructions, the first time I use it, I get the following error: Fatal error: Call to undefined function Gregwar\CaptchaBundle\Generator\imagettfbbox() in /Users/pgbonino/Sites/preparatest/vendor/bundles/Gregwar/CaptchaBundle/Generator/CaptchaGenerator.php on line 176 My phpinfo informs this: <h2><a name="module_gd">gd</a></h2> <table