dcole.ath.cx Posted August 9, 2006 Share Posted August 9, 2006 besides blocking posts containing piced words, how can I make a script that requires you to put in the number and or letters in an image. I don't want to make some image generator script that is a resource hog.can php get infomation about the image besides it's filename? like subject or something? then I could have a folder of images and just have a script rename the images... Link to comment Share on other sites More sharing options...
justsomeguy Posted August 10, 2006 Share Posted August 10, 2006 There are several already if you don't want to make your own:http://www.google.com/search?hs=plx&hl...amp;btnG=SearchYou can use getfilesize to get information about an image, including the size, type, and file attributes. If you want additional meta-information about a file, you will need to store it yourself in a database or XML file, or another file associated with the image file. Link to comment Share on other sites More sharing options...
reportingsjr Posted August 10, 2006 Share Posted August 10, 2006 the gd library can create images, and you can integrate that with the code I posted on your site.. Link to comment Share on other sites More sharing options...
Little Goat Posted August 10, 2006 Share Posted August 10, 2006 here's one that works pretty good:http://bokehman.com/captcha_verificationit includes sound for visually impared people too. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 10, 2006 Share Posted August 10, 2006 That's a pretty good one, I like the background letters, nice touch. Link to comment Share on other sites More sharing options...
ThePsion5 Posted August 10, 2006 Share Posted August 10, 2006 You could also use a spam-proof, randomly generated question to keep that from happening too. For example:function stfuSpammers() {$numbers = array('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine');//select two random numbers & note their array index//add the two array indices into $answerprint "<div>What is $number1 plus $number2? ";print 'Enter the answer here:<form action="' .$_SERVER['PHP_SELF'] . '"> <input type="text" name="answer" /> <input type="hidden" value="' . $answer . '"> <input type="submit" name="realanswer" value="Answer The Question, Sucka!"/></form></div>';} Then on the next page you just check to see if their answer matches the hidden value, that should stop any spammers unless they want to code a spam-bot specifically for your site, lol. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now