problem about captcha-Collection of common programming errors
BalusC
java session servlets captcha
I am creating a CAPTCHA input using SimpleCaptcha, and did validation of the Captcha input. I am created a captcha input with the following codes.HTML Code:<form action=”submit_proceed.do” method=”post”> <img src=”captchaImg” /><input type=”text” name=”captcha” value=””><br /> <input type=”submit” value=”Submit” name=”submit” /> </form>JavaServlet Code :import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.
Paedow
c# winforms generator captcha
I have an application which could easily be controlled by a bot over network or even on the local machine(which simuates keyboard and mouse e.g.). I want to avoid this using a captcha. The source has to work without internet / has to be generated during runtime on the computer itself. Is there any open-source project for this or can someone give me a code example or a link ?
Jordi P.S.
java google-app-engine awt captcha
Is there any library for captcha generation which does not contain blacklisted classes ?I would like to avoid to use recaptcha.I tried JCaptcha and SimpleCaptcha but both use AWT for image generation.The google ticket http://code.google.com/p/googleappengine/issues/detail?id=1423&q=awt&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log has been accepted 1 year ago but we don’t have news about it.
Jason
wpf google c#-4.0 captcha
My application uses Google to search for information and retrieves it. After a few searches, I get the dreaded Sorry.Google.com message and asking me to verify that I am not a bot and then my application crashes. I need the code to actually present the captcha page as a popup or WPF browser window when I am presented with it so that it can be entered and the application will then proceed on doing what it was doing. I am using HTTPWebRequest to fetch the search engine page. I can imagine the code
PhamMinh
c# asp.net captcha recaptcha
I use Recaptcha for my ASP.NET site. Everything okay in development environment, but when i public to production, I got this error:The remote name could not be resolved: ‘www.google.com’ Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Net.WebException: The remote name could not be resolved: ‘www.google.com’Source Error:An u
AntonAL
ruby-on-rails rubygems captcha
I have followed steps, described in rack-recaptcha readme.I have done all the steps, instead of “You have to require ‘rack-recaptcha’ in your gemfile.”Server is unable to start, because of a following error:Booting Mongrel=> Rails 2.3.5 application starting on http://127.0.0.1:3001/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `load_missing_constant’/System/Library/Frameworks/Ruby.framework/Versions/
fuzzybee
php captcha
I am trying to install this CAPTCHA script on my server:http://www.abeautifulsite.net/blog/2011/01/a-simple-php-captcha-script/I have uplaoded the files and tried to run the demo. However the CAPTCHA image does not display as it should.When I try and open the CAPTCHA image directly, I get this errorFatal error: Uncaught exception ‘Exception’ with message ‘Font filenot found: ‘ in/home/website/public_html/simple-php-captcha/simple-php-captcha.php:125Stack trace: #0 {main} thrown in/home/website/p
sfrj
java jsf java-ee jsf-2 captcha
I am following the tutorial i found in this page http://javahunter.wordpress.com/2010/09/25/integrating-captcha-in-jsf-2-0/ to integrate a captcha to my user registration form made in JSF 2.0 but i am having some problems, maybe somebody can help me. This is what i have done so far:The JSF page:<h:graphicImage id=”capimg” value=”#{facesContext.externalContext.requestContextPath}/../Captcha.jpg”/><h:inputText id=”captchaUserInput” value=”#{registrationController.captchaUserInput}”/> &
Elijah Paul
php jquery ajax form-validation captcha
I’m new to jQuery.I have an html contact form with a captcha validation.The form uses jQuery to validate the name, email address and message.But I’m having trouble integrating the captch validation.The captcha is generated (by verifyimage.php) using the following code:<?php session_start(); error_reporting( 0 ); if( !function_exists( “imagecreatefrompng” ) ) {exit( “You need to recompile with the GD library included in PHP for this feature to be able to function” ); } $alphanum = “ABCDEFGHIJK
Samuel
java login playframework captcha playframework-1.x
I have the task of maintaining a small application written with PlayFramework 1.2.x. One item that needs done: adding a Captcha to the login page. This is apparently harder than one thinks, since the login-page is handled semi-automatically by the Secure module.When handling a normal HTTP form, the PlayFramework passes the form variables to the controller method as parameters. Using the standard Secure module, the login form contains only the user-name and the password, and these are passed to t
davorp
javascript forms http captcha recaptcha
Is possible to customize reCAPTCHA form parameters (recaptcha_challenge_field and recaptcha_response_field) so that they are called differently?Basically I want the form parameter recaptcha_challenge_field to be called captchaId, and recaptcha_response_field to be called captchaUserResponse.I want them renamed so I can abstract the captcha implementation… when a request arrives onPOST /mysite/userSignupI don’t want to bother with captcha implementation (reCaptcha, or something else in the futu
Mauro74
php osx gd captcha
I’m using a simple captcha system for a form. Works fine on Windows but it not showing on Mac. In both systems DG is enabled, I’ve checked with phpinfo().<?phpsession_start();// generate random number and store in session$randomnr = rand(1000, 9999);$_SESSION[‘randomnr2’] = md5($randomnr);//generate image$im = imagecreatetruecolor(90, 32);//colors:$white = imagecolorallocate($im, 255, 255, 255);$grey = imagecolorallocate($im, 128, 128, 128);$black = imagecolorallocate($im, 0, 0, 0);imagefille
conmen
codeigniter captcha
I try to make simple in explanation of my CI captcha helper,I had a captcha controller as below:class Captcha extends CI_Controller {public function index() {$this->load->library(‘session’);$this->load->helper(array(‘captcha’,’url’));if ($this->input->post() && ($this->input->post(‘secutity_code’) == $this->session->userdata(‘mycaptcha’))) {$this->load->view(‘process.php’);}else{$this->load->helper(‘captcha’);$vals = array(‘img_path’ => ‘./ass
Tim
php session variables captcha
I have the following code:<?php session_name(‘mysession’); session_start(); ?><!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.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> <title>Test Captcha</title> </head><body>Captcha Image: <img src=”get_captcha.php” width=”139″ height=”139″ /> <?php
songdogtech
server plugin-contact-form-7 configuration captcha library
I am using the very popular contact form 7 on one of my site which is hosted on a VPS. After starting to use the captcha addon for contact form 7 I realized that my VPS doesn’t have a support for GD and FreeType library. it also give me an error when viewing the contact form page:Fatal error: Call to undefined function imagetypes() inhome/public_html/wp-content/plugins/contact-form-7/modules/captcha.phpon line 348I was referring to my server support team and they told me I need to configure it o
hakre
plugin-cforms query-string captcha
I am getting errors in the server log for cformsII plugin but don’t understand why.PHP Notice: Undefined index: b in /var/www/wordpressmu/wp-content/plugins/cforms/cforms-captcha.php on line 12 [Tue Jul 12 15:02:26 2011] [error] [client 172.18.30.81] PHP Notice: Undefined index: f in /var/www/wordpressmu/wp-content/plugins/cforms/cforms-captcha.php on line 15 [Tue Jul 12 15:02:26 2011] [error] [client 172.18.30.81] PHP Notice: Undefined index: f1 in /var/www/wordpressmu/wp-content/plugins/cfo
Emmett
bug status-completed review captcha
Since few days I made some edits on SO and sometimes I got a captcha.But when I want to improve a suggested-edit, edit a vote-closed question or improve a low-quality answer/question I got an undefined box when hitting the Save Edits button:As you can see, the response want to redirect me to the captcha.
Dipak
java javascript gwt captcha
I want to add captcha inside dialogue box. This is first time I am using captcha in my porojectCaptcha Widget is not loading.I used gwt-recaptcha-1.0.0.Beta2.jar this plugin to show it in client side. And public key is generated by givinmg URL example.com,also i included the scripts and its files as follows:<script language=”JavaScript” type=”text/javascript”src=”/js/jquery-1.10.2.min.js”></script> <script language=”JavaScript” type=”text/javascript”src=”/js/jquery-ui-personalized
teresko
php codeigniter captcha
I’m trying to get my registration page to display a CAPTCHA. I have a registration controller and a registration view.Here’s my controllers index method:public function index() {$this->load->helper(‘captcha’);$cap = create_captcha(array(‘img_path’ => ‘./captcha/’,’img_url’ => ‘http://localhost/captcha/’,’img_width’ => 150,’img_height’ => 40));$data = array(‘captcha_time’ => $cap[‘time’],’ip_address’ => $this->input->ip_address(),’word’ => $cap[‘word’]);$query = $
ronalchn
img captcha
I am trying to run a rating and review software on my site. I can not get the avatar or the captcha images to show up. How do I adjust this on my server running windows IIS?extension=php_gd2.dll<label class=”xcFormLabel” for=”idRegAvatar”>Avatar – images will be resized to 80px x 80px (100k): </label> <div class=”xcDivClear”> </div> <input type=”file” name=”avatar” id=”idRegAvatar” value=”” class=”xcRegInputText” /> <br /><br /> <img class=”xcRegCaptc
user1460822
php image captcha imagettftext
My captcha code is not working, I am able to bring up the lines at back but the numbers are not visible in the captcha. The code is working perfect on localhost but not on my hosting website.here’s the code: <?php session_start(); header(‘Content-type: image/jpeg’);$text= $_SESSION[‘secure’];$font_size =30; $image_width= 110; $image_height=40;$image=imagecreate($image_width,$image_height); imagecolorallocate($image, 255, 255, 255); $text_color = imagecolorallocate($image, 0, 0, 0);for($x=1; $
halcyon9
javascript html forms math captcha
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
ojitos
heroku gd captcha freetype
Heroku does not support FreeType, what can we do about it? I want to use securimage captcha, but i get this error:Fatal error: Call to undefined function imagettfbbox() in /app/www/securimage.php on line 867http://groups.google.com/group/heroku/browse_thread/thread/5f0b169272dd075f
JANNURM
php captcha
Fatal error: Call to undefined function imagettfbbox()But it is loading in local server perfectly .This is my web url.http://mc-serverreviews.com/test/contact.php
sarnold
ruby-on-rails ruby rubygems captcha
There’s this snazzy captcha that asks questions rather than displaying pictures. You can read about it at textcaptcha.com. Anyway. I want to use that with Ruby on Rails. A developer by the name of Matt Hutchinson wrote a Gem for easily connecting to the API. He has a set of instructions next to his source files on github. Anyway, It looks pretty simple but in trying to implement it I get this error every time:undefined method `acts_as_textcaptcha’ for #<Class:0x104098508> Rails.root: /User
Ellie
php captcha
I have a Captcha on my site, http://sketchedneo.com/jointest.phpHowever it isnt working. Its Just letting incorrect codes through. Can some help fix this pleaseI am Unsure which part of code I need to show for this. (Here is my captcha.php)<?php session_start(); header(“Expires: Mon, 26 Jul 1997 05:00:00 GMT”); header(“Last-Modified: ” . gmdate(“D, d M Y H:i:s”) . ” GMT”); header(“Cache-Control: no-store, no-cache, must-revalidate”); header(“Cache-Control: post-check=0, pre-check=0”, fal
Sri
jsf-2 captcha liferay-6
I am trying to use Liferay Captcha for my project and here is the code:Here is my code: CaptchaBean.java:package com.verisign.pds.sample;import java.io.Serializable;import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.context.FacesContext; import javax.faces.event.ActionEvent;import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.PropsKeys; import com.liferay.portal.kernel.util.PropsUtil;@ManagedBean public class Ca
Sri
jsf-2 primefaces captcha liferay-6
I am using Primefaces 3.3.1, Liferay 6.1.10 and Weblogic 10.3.5, JSF 2.0. Here is the code: captcha.xhtml:<?xml version=”1.0″ encoding=”UTF-8″?><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN””http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><f:view xmlns=”http://www.w3.org/1999/xhtml” xmlns:h=”http://java.sun.com/jsf/html”xmlns:f=”http://java.sun.com/jsf/core” xmlns:ui=”http://java.sun.com/jsf/facelets” xmlns:p=”http://primefaces.org/ui”><h:head />
Saeven
captcha facebook-stream-story
We’re using code that we’ve used before, so I suspect that this may be site-related. In using a standard:FB.ui({method: ‘feed’,app_id: ‘<?= $LDP->config->facebook->id ?>’,name: ‘Post Name’,link: flink,picture: “https://www.domain.ca/templates/visual/images/share.gif”,caption: “Caption”,description: ‘Join the fun today!’,actions: [{ name: “Check it out!”, link: flink }]},function(response) {if (response && response.post_id) {alert(‘Post was published.’);} else {alert(‘Post
Web site is in building