captcha

django simple captcha keeps saying `invalid CAPTCHA`

此生再无相见时 提交于 2019-12-13 04:29:55
问题 I have followed the steps given by the docs, firstly , it works well ,but ,i don't know anythings wrong ,it makes an invalid Captcha . i run the manage.py test captcha , it says like this : C:\Windows\system32\cmd.exe /c python.exe manage.py test captcha Creating test database for alias 'default'... .......Internal Server Error: /test/ Traceback (most recent call last): File "D:\Python33\lib\site-packages\django-1.5.5-py3.3.egg\django\core\handler s\base.py", line 115, in get_response

How to implement captcha in Android [closed]

…衆ロ難τιáo~ 提交于 2019-12-13 03:41:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to do captcha in my application. After my initial analysis, I found that most of them recommend to use 'Simplcaptcha'. I gave a shot at it. But my efforts are in vain. The output of 'simplecaptcha' is a AWT component. So it cannot be used in Android. Is there any way to use the same in Android by means of

Help dealing with spam logic

冷暖自知 提交于 2019-12-13 03:39:10
问题 I have a blog, and i have decided to use Akismet and reCaptcha for spam filtering, the way i am dealing with spam is a) the user should go through the captcha before posting a comment b) Now even if some spam bypass captcha then i would like Akismet to handle it. For akismet to handle the Spam, i thought of creating two different tables in database for comments, One to store the comments which is not detected by Akismet , The other is to store the Comments that is detected by akismet(Spam).

ImageURL doesn't work inside Update Panel

▼魔方 西西 提交于 2019-12-13 02:53:59
问题 I am writing a captcha authentication program in ASP.NET C#. The problem i face is that the image gets refreshed on entering wrong value during a postback; but same image doesn't get refreshed during a partial postback, when i keep them inside an update panel. aspx source <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Image ID="ImageCaptcha" runat="server" ImageUrl="~/BringImg.aspx" /><br /> <asp:TextBox ID="txtCaptcha" runat="server" ></asp:TextBox><br /> <asp

Ajax CAPTCHA validation

江枫思渺然 提交于 2019-12-12 20:17:57
问题 Is it reasonable (or secure) to validate CAPTCHA via ajax? I want place a sign up form without any page reload. Is it secure? (I am using Validation[1] and Form plugins) [1] http://bassistance.de/jquery-plugins/jquery-plugin-validation/ 回答1: You cannot rely on JavaScript to secure anything. You can use it as a first-pass, but you still need to do the captcha validation on the server (as it appears you are planning to do). For example, see: http://www.howtocreate.co.uk/tutorials/javascript

my codeigniter captcha not generating image

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 18:34:36
问题 My CodeIgniter captcha is not generating so I can't show it in my view Controller public function login() { $this->load->helper('captcha'); $this->form_validation->set_rules($this->login_rules); $userCaptcha = set_value('captcha'); $word = $this->session->userdata('captchaWord'); if($this->form_validation->run() == TRUE && strcmp(strtoupper($userCaptcha),strtoupper($word)) == 0) { $this->session->unset_userdata('captchaWord'); $username = $this->input->post('username'); $password = $this-

Fake Captcha from commonlibnet with FakeItEasy and FluentValidation

拟墨画扇 提交于 2019-12-12 17:14:31
问题 I am using the Captcha class from commonlibrary (http://commonlibrarynet.codeplex.com/). My code works and everything but now I'm trying to write the unit test. My validation rule is: RuleFor(x => x.CaptchaUserInput) .NotEmpty() .Must((x, captchaUserInput) => Captcha.IsCorrect(captchaUserInput, x.CaptchaGeneratedText)) .WithMessage("Invalid captcha code"); In my set up code I tried to do the following: A.CallTo(() => Captcha.IsCorrect()).Returns(true); but I get the following error message:

Captcha handling using Selenium

雨燕双飞 提交于 2019-12-12 16:00:49
问题 I am trying to automate one form where I get re-Captcha as a part of form submission. I got stuck and figuring out that how can we handle the captcha text using selenium webdriver. Though this captcha is turing test implementation in realtime but, still I am finding some way so that I can handle this scenario. 回答1: So you can't really do that, captcha is by definition meant to break your automation. That said, I have had some luck using Tesseract OCR, but I was dealing with rather simplistic

imagettftext(): Could not find/open font error message

我是研究僧i 提交于 2019-12-12 13:00:18
问题 I'm trying to read a captcha image in a form. Here is the form code: <form class="login" method="POST" action=""> <p class="title">Are you human?</p> <div id="captchaimage"> <img src="generate.php"> </div> <input type="text" name="scr" size="6" placeholder="Write what you see here" autofocus/> <input class="submititon" type="submit" value="Submit" name="submit"></input> </form> And this is the generate.php file: <?php session_start(); //header('Content-type: image/jpeg'); $text = $_SESSION[

Spam Defeating All My Captcha

心已入冬 提交于 2019-12-12 12:41:04
问题 I have a wordpress blog and I had the Captcha plugin on it for the longest time because it worked. Lately though I am getting mass amounts of spam. I then tried to do a "Add These Random Numbers Together" that were generated via PHP but still no luck. I'm not quite sure what I need to do to block this spam but it is quite annoying. I was reading about some kind of visual script that spammers use - that reads your webpage or something thats why Captcha has the messy images to block this sort