We have 8 guests online
PHP Scripts arrow Anti Spam Scripts

Free PHP Scripts by Gscripts.net

Image ValidatorFeatured Popular - PHP Script


I. DESCRIPTION

Image Validator is a GPL CAPTCHA php script to stop spam on  any form: comment areas, sign-ups, shopping carts - any area of your website where you fear the evil spammers may target.


II. REQUIREMENTS

    1. Apache 1 or 2
    2. PHP 4 or 5
    3. GD 2 with truetype support


III. INSTALLATION

    0. Unpack this package.
    1. You may edit _config.php file located in imgval directory.
    2. You may copy some TrueType fonts in imgval/fonts directory.
    2. Upload or copy imgval directory to browsable directory.
    3. Open imgval/index.php in your browser for testing.


IV. INTEGRATION NOTES

    In <img> tag, 'src' parametter should be linked with imgval/code.php.

    Example: <img src="imgval/code.php" />.

    To prevent cache images you may add some unique parameter.

    Example: <img src="imgval/code.php?id=<?= time() ?>" />

    Your should start a session in the response PHP file. In the valid action
    PHP source code you should verify MD5 sum of the input-code-field-value
    with session variable named __img_code__

    Example:

    if (md5($_POST['code']) == $_SESSION['__img_code__'])
        echo "Valid code";
    else
        echo "Invalid code";
Rate Our Program
Excellent!
Very Good
Good
Fair
Poor



Average Visitor Rating: 3.96 (Out of 5)
Number of ratings: 95

Select your rating
Excellent  Good  Average  Fair  Poor 
Script Details
Website: Home of Image ValidatorFeatured Popular
Free Demo: Demo
Free Download: Download
Average Visitor Rating: 3.96 (Out of 5)
Number of ratings: 95
Hits: 31882
Added: 2007-06-24 05:52:48
Last updated: 2009-03-03 09:48:50

Reviews (7)
Image Validator
Scrip Reviewed by Andreas, 2011-01-24

Excellent script, very easily incorporated into my web page.

cool script
Scrip Reviewed by erica, 2010-04-14

Cool script but where do I put it? Inside or outside the tags of my form? Yes I'ma noob! lol Thanks! :)

Good work
Scrip Reviewed by Jerry, 2009-12-13

This code was easy to incorporate into our website and that's saying something. I inherited PHP code that is simply nuts, so this CAPTCHA being simple in design and structure helped a great deal. And it worked from the first time out, which was icing on the cake. Thanks and good work.

String Comparison in PHP
Scrip Reviewed by Vicky, 2009-06-03

Love the little script. I use it everywhere, but I noticed that it didn't work with one hosting company (different config I guess). Anyway, I changed the following string comparison:

if(md5(strtoupper($_POST['code'])) == $_SESSION['__img_code__'])

to:

if (strcmp( md5(strtoupper($_POST['code'])), $_SESSION['__img_code__'] ) )


and it works beautitfully. Thanks heaps.

Regards

Vicky

String Comparison in PHP
Scrip Reviewed by Vicky, 2009-06-03

Love the little script. I use it everywhere, but I noticed that it didn't work with one hosting company (different config I guess). Anyway, I changed the following string comparison:

if(md5(strtoupper($_POST['code'])) == $_SESSION['__img_code__'])

to:

if (strcmp( md5(strtoupper($_POST['code'])), $_SESSION['__img_code__'] ) )


and it works beautitfully. Thanks heaps.

Regards

Vicky

Very good
Scrip Reviewed by Mclovin', 2008-02-28

This is an awesome script, just what I was looking for, and works perfect

image validator
Scrip Reviewed by Albino, 2007-10-06

Excellent what else could i say

Results 1 - 7 of 7

Directory Stats

There are 1037 listing and 46 categories in our website

Change Language