Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    10
    Member #
    7344
    Could anyone direct me to a formmail script that has a security code feature.
    Or where I could learn how to create this feature to add to an existing formmail script. Spammers have gotten a hold of the forms on my site and after installing 3 other "secure" form processing scripts the spammers are still getting in.
    What I want is this:
    "please enter the code shown below"
    code: 3FR4xe

    you can see an example here: http://www.bfndevelopment.com/cgi-bi...gi/22/94/null/

  2.  

  3. #2
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    The code image is called a CAPTCHA image. I don't recall seeing any scripts with them built in, but a Google search should probably find one.

  4. #3
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    It's fairly straightforward to implement. Here it is in concept:

    1. On the server, create a security code, and save it somewhere in a file (preferably outside the website root tree). The captcha should somehow get linked to the user - via IP address or remote host or something.

    2. Send the form to the user along with the security code. The code could be in an image. See this page on my site for help on how to do this: http://ekstreme.com/phplabs/graphics.php . The form should contain a field for the user to add in the security code - it's called the captcha as Fallout said.

    3. The form gets submitted. The very first thing you do is check the captcha - you already know what the captcha should be since it is stored on the server. If it fails, send back the form. If it doesn't, process normally.

    One extra layer of security: if the captcha used is more than X minutes (say 15 minutes), then fail it, but this could prove annoying!

    To see a simpler captcha system in action see my CrawlerController script: http://ekstreme.com/phplabs/crawlercontroller.php .

    Hope this helps.
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:53 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com