captcha

Get image for captcha session

末鹿安然 提交于 2019-12-22 19:52:26
问题 I want to get the current captcha that is displayed on a website. An example of this would be http://top100arena.com/in.asp?id=58978 How would I get the image link of the captcha that is displayed other than right clicking - > open image in new page? 回答1: You are looking for the div identified by "rechapta_image" : Then extract the src attribute of the img element inside this div. To do this, you can choose for an easy String-operation-based way or use a HTML parsing library like JSoup. Here

Get image for captcha session

帅比萌擦擦* 提交于 2019-12-22 19:50:30
问题 I want to get the current captcha that is displayed on a website. An example of this would be http://top100arena.com/in.asp?id=58978 How would I get the image link of the captcha that is displayed other than right clicking - > open image in new page? 回答1: You are looking for the div identified by "rechapta_image" : Then extract the src attribute of the img element inside this div. To do this, you can choose for an easy String-operation-based way or use a HTML parsing library like JSoup. Here

what are the downpoints of this captcha method

别说谁变了你拦得住时间么 提交于 2019-12-22 10:34:43
问题 I use this captcha method on all my forms on many sites, the basic premis is that I have a text box that is hidden by css, if the server-side code determines that there is any content in this box, then the form is not completed. Client side: <li id="li-cap"><label>Leave this field blank</label><input type="text" maxlength="30" id="cap" name="cap" /></li> Css: #li-cap{display:none} Server side psuedo code: if(!nullOrEmpty(input#cap)) { return post back to form with error } else { process form

How to protect registration page from multiple malicious requests?

假如想象 提交于 2019-12-22 10:18:38
问题 I allow users to register on my website using a registration form. Once form is submitted a token will be generated and will be sent by email to user, they need to click on the token link to activate their account. My question is that if I do it, do the malicious codes can still send multiple emails to my website to register, should I use Captcha to protect the website or there is any other method ? 回答1: If all you want is to prevent double submissions , you can generate a unique token for

PHP GD: The image cannot be displayed because it contains errors

我只是一个虾纸丫 提交于 2019-12-22 09:56:12
问题 I try to make Captcha via PHP GD. But unfortunately I encounter to a problem! PHP tell me: The image “http://127.0.0.1/par.php” cannot be displayed because it contains errors. My code is this <?php header ('Content-Type: image/png'); $im = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image stream'); $text_color = imagecolorallocate($im, 233, 14, 91); $red = imagecolorallocate($im, 255, 0, 0); for ($i=0;i<=120;$i=$i+1){ for ($j=0;$j<=20;$j=$j+1){ imagesetpixel($im, $i,$j,

Scrapy & captcha

99封情书 提交于 2019-12-22 08:34:49
问题 I use scrapy for submit form in site https://www.barefootstudent.com/jobs (any links into page, etc http://www.barefootstudent.com/los_angeles/jobs/full_time/full_time_nanny_needed_in_venice_217021) My scapy bot successfully log in but i can not avoid captcha. For form submit i use scrapy.FormRequest.from_reponse frq = scrapy.FormRequest.from_response(response, formdata={'message': 'itttttttt', 'security': captcha, 'name': 'fx', 'category_id': '2', 'email': 'ololo%40gmail.com', 'item_id':

Captcha library for Swing?

做~自己de王妃 提交于 2019-12-22 08:27:53
问题 I'm looking for a captcha library or component that I could use inside a Swing Gui. Do you know any ? Edit: It seems not to exist. I'll program a small one myself. 回答1: Even though I don't really understand the need for captcha in Swing app, you can probably use JCaptcha http://jcaptcha.sourceforge.net/ 回答2: Let me try to explain the reason @eugener tries to talk you out of a CAPTCHA: Normally a CAPTCHA is used to prevents bot registration as you already said. This is done by having the

Google Invisible ReCaptcha not invisible

ⅰ亾dé卋堺 提交于 2019-12-22 06:57:55
问题 I just try to get Google Invisible ReCaptcha to work after submitting a form. My problem is, the ReCaptcha is NOT invisible, it looks like the "old" recaptcha is popping up. I don't understand why. My site-key is for invisible recaptcha. Please help me. First of all i'm loading the API: <script src='https://www.google.com/recaptcha/api.js?render=explicit&onload=onScriptLoad' async defer></script> My form looks like this: <form method="post" id="contact-form-face" class="clearfix" onsubmit=

How do I add a CAPTCHA to my PHP form?

二次信任 提交于 2019-12-21 07:24:20
问题 My knowledge of php is not good and I need help. I have this php form but I don't know how to add a CAPTCHA mechanism. How do I achieve this? 回答1: I really like Securimage is seems to work really well and does not require a third-party external service or javascript (unless you enable the new image feature). Also it can be configured to provide audio captcha for accessibility. 回答2: Check this detailed guide about captcha implementation in PHP: http://www.the-art-of-web.com/php/captcha/ 来源:

C# - jQuery real-person allways fails

心已入冬 提交于 2019-12-21 06:37:45
问题 I use jQuery-realperson plugin. However, the validate of captcha value at server-side, always fails. I saw similar question at SO, but it was about problem that happen on PHP. I need C# code. My client side - js, based on knoskout.js: var validCaptcha = $.ajax({ url: global.webApiConfig.getApiPath('Login/CheckCaptcha'), data: { Value: $('#captcha').data().realperson.hash, PersonValue: $('#captcha').val() }, type: 'POST', cache: false, async: false }); if (validCaptcha.responseText != true