captcha

imagettftext() - Cannot find font location

萝らか妹 提交于 2019-12-08 08:16:16
问题 I am using the imagettftext() function to create a custom captcha script. I have ran and tested the code successfully on my PC, running PHP (Version 5.3.8) but when I upload to my shared hosting account running PHP (Version 5.2.17) it comes up with the following error Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/pheelco/public_html/captcha.php on line 17 This is line 17; imagettftext($img, 25, 0, 0, 25, $text, "fonts/alger.ttf", $num); I definitely have

How to put ReCaptcha in a popup?

不打扰是莪最后的温柔 提交于 2019-12-08 07:00:18
问题 I want to show Recaptcha in a Popup. Like i have a page where the user can submit a note. If someone is submitting a note i want to show a popup where recaptcha control will be there and after validation the note will be submitted. How can i do that? Can someone please help. 来源: https://stackoverflow.com/questions/3656633/how-to-put-recaptcha-in-a-popup

Adding Captcha to Symfony2 Login

China☆狼群 提交于 2019-12-08 04:31:33
问题 I need to add Captcha to my login page, I am using GregwarCaptchaBundle and FosUserBundle. For the moment I have get show the captcha on the login using the following code: <?php /* * This file is part of the FOSUserBundle package. * * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FOS\UserBundle\Controller; use Symfony\Bundle\FrameworkBundle

Solving captcha with PHP? Personal challenge?

那年仲夏 提交于 2019-12-07 17:50:40
问题 I want to see if I can solve captchas with PHP for a bit of a personal challenge. Nothing too hard; words in the same line, words always in same colour, etc. Here's an example. http://www.simplyshows.com/img.jpg Just wanted to see how hard would it be. My question is, are there PHP based function which I can use to check pixel by pixel for colour etc? I want to divide the letters and then do a load of checks to determine if the letter is upper case, lower case, and what it can be (depending

How to pass login form with captcha field using phantomjs?

血红的双手。 提交于 2019-12-07 17:25:18
问题 In one of my pages, I ask user for credentials of another website, so that I can log in the website with phantomjs in the background and get some data (because the website still doesn't have API or Oauth). I can log in most of the time, but sometimes the server got suspicious and the login form contains a captcha field. I can get the image and return it to the user for him to enter captcha code, but returning from the request, the phantomjs session is ended, and if I start another phantomjs

Selenium Page Source is Missing Elements

℡╲_俬逩灬. 提交于 2019-12-07 16:03:47
问题 I have a basic Selenium script that makes use of the chromedriver binary. I'm trying to display a page with recaptcha on it and then hang until the answer has been completed and then store that in a variable for future use. The roadblock I'm hitting is that I am unable to find the recaptcha element. #!/bin/env python2.7 import os from selenium import webdriver driverBin=os.path.expanduser("~/Desktop/chromedriver") driver=webdriver.Chrome(driverBin) driver.implicitly_wait(5) driver.get('http:/

菜鸟学Python之django-simple-captcha使用

半腔热情 提交于 2019-12-07 14:49:08
环境的准备 前端框架semantic ui Python 3.6.4 pip install django pip install django-simple-captcha django-simple-captcha官方文档地址 http://django-simple-captcha.readthedocs.io/en/latest/ 目标展示 配置settings.py # django_simple_captcha 验证码配置其他配置项查看文档 # 默认格式 CAPTCHA_OUTPUT_FORMAT = '%(image)s %(text_field)s %(hidden_field)s ' CAPTCHA_NOISE_FUNCTIONS = ('captcha.helpers.noise_null', # 没有样式 # 'captcha.helpers.noise_arcs', # 线 # 'captcha.helpers.noise_dots', # 点 ) # 图片中的文字为随机英文字母,如 mdsh # CAPTCHA_CHALLENGE_FUNCT = 'captcha.helpers.random_char_challenge' # 图片中的文字为数字表达式,如2+2= CAPTCHA_CHALLENGE_FUNCT = 'captcha.helpers

mvc generate captcha after failed login attempt

丶灬走出姿态 提交于 2019-12-07 12:38:34
问题 so i was able to make my recaptcha thing working but my problem is though, i want to have it appear only after 3 tries. one option that i have is to redirect the user to a View that will have the captcha already (duplicate of the login but with captcha) and then have him log in through that page. is there any other option? i feel like partial views would cause problems on Post of the page. what do you think is the best way to generate the captcha? <% using(Html.BeginForm()) {%> <%: Html

javax.faces.FacesException: Cannot find public key for catpcha

╄→尐↘猪︶ㄣ 提交于 2019-12-07 10:29:15
问题 I want to implement captcha in my application, but i get this error can anybody tell me reason ?? juin 01, 2014 12:22:04 PM com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback visit GRAVE: javax.faces.FacesException: Cannot find public key for catpcha, use primefaces.PUBLIC_CAPTCHA_KEY context-param to define one 回答1: See the message, you need to register for a CAPTCHA key then add the following to your web.xml <context-param> <param-name>primefaces.PUBLIC_CAPTCHA_KEY</param

How to use PrimeFaces Captcha?

与世无争的帅哥 提交于 2019-12-07 09:42:39
问题 I went through the user guide and the showcase but couldn't find a way to get the Captcha evaluation result in the backing bean. I can see the result on the top message bar on the UI but how to get the result in the backing bean? 回答1: I don't think that it has any result for your beans. If you type valid text in the captcha box the process validation phase does not throw error and your input will be handled as valid. Otherwise the captcha component signal the error and you will see the error