PDA

View Full Version : Having problems with "CAPTCHA for Perl"


ihomebiz
09-21-2007, 10:06 PM
Hi Everyone, :)

This is my first post in this forum. I joined today.

I installed "CAPTCHA for Perl" on my website but cannot find any documentation on the download website for adding it to my forms. There is no contact information on the bumblebeeware.com site where I downloaded the Captcha script.

If anyone knows how to get this script up and working, I would be grateful for some help.

ihomebiz

bazz
09-21-2007, 11:20 PM
I found this in the website you mentioned. have you followed it to the end?

if so, which part do you need help with?

To install the demo program download the zip file and unzip it.

Create a directory on your website named "captcha". The directory must be able to execute perl scripts, if you are limited on your server then your base directory would be your cgi-bin.

Make 2 directories inside that directory named "temp" and "images". You will need to chmod 0777 so they are web writeable.

# you need to make sure the path to perl is correct for your server the default is:
#!/usr/bin/perl

You only need to modify 2 lines in the captcha.cgi. Change the "pathtoyourwww" to the actual path to the directory the script will reside in.

$tempdir = "/pathtoyourwww/captcha/temp";
$imagedir = "/pathtoyourwww/captcha/images";

Then modify the check-captcha.cgi with the correct path to the temp directory.

$tempdir = "/pathtoyourwww/captcha/temp";

Upload captcha.cgi, check-captcha.cgi, form.cgi to the captcha directory.

chmod 0755 each script.

Upload the images (in binary mode) to the image directoty.

Now just access the form.cgi to see how it works.

Notes: You will not want your temp or images directories to be web accessible. They should be placed in a directory that is not web readable. For the purpose of demonstration, we have put everything in web accessible directories so you can analyze how it works.

We do not expect anyone to use the demo program as is, because it does not do anything other than demonstrate the use of the form validation. For that reason, we have made it as easy as possible to understand and not necessarily in the best secure configuration.

For additional help and image sets go to http://bumblebeeware.com

bazz

ihomebiz
09-23-2007, 10:54 PM
Hi Bazz,

I've done all the above. Now I want to know how to install it on my contact forms. I tried my host who are very good but it seems that he formmail script will not work with the one on my site because my host provides a
pre-installed version of formmail on my server which would override
installing the formmail.cgi file provided by Bumblebeeware.

I do not quite know what to do now. I have been trying to solve my spam problem for several months and everything I try does not work for some reason. PHP versions of Captcha do not work with my perl forrm mail either. Do you have any ideas?

ihomebiz