Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

random keyword validation

Recommended Posts

How would I go about getting one of those randomly generated pics with numbers/letters for verification purposes on a site to prevent people from randomly signing up, or bots from randomly signing up.

Share this post


Link to post
Share on other sites
Search for "PHP captcha" or go to PHPclasses.org and search for "captcha".

It's worthwhile getting one somebody wrote, because there's no point reinventing the wheel when it's simple enough and other people have done it for you. :)

Share this post


Link to post
Share on other sites
well you could just have a wordfile.txt containing 1000words and then generate random line number and ad a random number to end also and basicaly store this in a session or in database with users sessionID and then pull it out on next page and compare to the users input.. i personaly just use to generate random numbers and letters and use GD to show the code in an image..

Probs not best way in the world but it's a way :)

Regards
liam

Share this post


Link to post
Share on other sites
you could download one from www.digitalmidget.com/php_noob2006/captcha.php

Share this post


Link to post
Share on other sites
[quote author=AndyB link=topic=105088.msg419617#msg419617 date=1156188673]
you could download one from www.digitalmidget.com/php_noob2006/captcha.php
[/quote]

That's the one I recommend. its easy to use and layed out nicely if you need to modify it to your needs.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.