anti spam image
Posted 14 August 2006 - 07:12 PM
Now my question is, can anybody script such a thing (pref without the GD librairy whatever it is), or know one ? Because without such a thing i cannot bring the forms back online (and they already have a scriptpart that checks for empty fields that are obligated).
Catch my drift, i really need this.
Posted 14 August 2006 - 07:20 PM
without GD you could use a fake image that either never changes or is randomly selected from a group - a sort of pseudo-captcha - along with the requisite 'values' in an array accessed by your checking script.
Posted 14 August 2006 - 07:22 PM
Posted 14 August 2006 - 07:55 PM
Posted 14 August 2006 - 08:05 PM
<?php phpinfo(); ?>
Save as phpinfo.php, upload to your site, then visit it. If you have GD installed, it'll appear in the list og goodies there. GD2 and GD in general has been around long enough that any decent host would provide it as part of their hosting package ... espcially since it's open source and free. Your host will know how to recompile php with GD support (if not, you need another host - fast).
Posted 14 August 2006 - 08:11 PM
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled <==
WBMP Support enabled
XBM Support enabled
yet the image is not generated. Next step ? The full info can be viewed here http://www.fastrax.b...imggen/test.php
Posted 14 August 2006 - 08:14 PM
Sounds like a difference between the way you have things set/named and how my script requires them. It's supposed to work 'out of the box' when everything is uploaded into the same relative structure as the zip file without changes.
Posted 14 August 2006 - 08:26 PM
Posted 15 August 2006 - 08:33 PM
2) Is it possible to have a rotating background (this is optional) ?
Posted 16 August 2006 - 12:22 AM
I can let you have the full scirpt if you want. It is rather simple but in princple it does this.
Sets a background image from a folder.
Opens a fonts folder
Selects a random font
selects a random number from 0-9
repeats this to get a series of 5 numbers in random fonts (and x,y co-ords)
Then generates a complete image with session variable.
Let me know if this would be of use
If at first you don't succeed....stop using ASP and get onto PHP
Posted 20 August 2006 - 08:29 PM
AndyB is there a possibilty on the stuff i asked?
Posted 20 August 2006 - 10:31 PM
The script 'as is' intentionally omitted some characters that might be confused (0 and O, 1 and I) and upper-case seemed like enough variability. In case people 'forgot' to enter the security code in upper-case, the script changed all input to upper-case before testing with this line:
$secure = strtoupper(trim(strip_tags($_POST['secure'])));
If you want to add lower case letters to those available, you can ... as long as you change that line above here to this:
$secure = trim(strip_tags($_POST['secure']));// leave case as entered
Posted 21 August 2006 - 01:00 AM
update. Lowercase : worked like a charm mate. Thx for the script. Maybe ill give ya some credit on my website once the changes go live
Posted 21 August 2006 - 01:28 AM
If you want a randomly chosen background, then edit the captcha_config.php file to replace this line:
$background = "captchas/random-back-image4.jpg"; // this is the image used for random background creation
With these lines:
$backs = array("random-back-image4.jpg", "another-image.jpg", "different-image1.jpg"); // as many as you want as long as they all exist!! $background = "captchas/". $backs[rand(0,count($backs)-1)];// a random background
Obviously the differently named background have to exist and be in the same folder as the original background image. You can add as many as you want to the $backs array. It's untested but highly likely to work. If it does, you owe me a beer
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users