How to add captcha?

Discussion in 'PHP' started by seoindiaweb, Nov 15, 2006.

Thread Status:
Not open for further replies.
  1. #1
    I get lot of spam emails through my contact form, so is there anyway where i can add captcha ( image verification ) to stop the bots
    if so where can i get that script ??

    Thanx
     
    seoindiaweb, Nov 15, 2006 IP
  2. golddragon

    golddragon Active Member

    Messages:
    583
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #2
    golddragon, Nov 15, 2006 IP
  3. seoindiaweb

    seoindiaweb Banned

    Messages:
    2,889
    Likes Received:
    200
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanx lemme see if it helps;)
    Sorry it didnt worked:(
     
    seoindiaweb, Nov 15, 2006 IP
  4. stuart

    stuart Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    stuart, Nov 15, 2006 IP
  5. seoindiaweb

    seoindiaweb Banned

    Messages:
    2,889
    Likes Received:
    200
    Best Answers:
    0
    Trophy Points:
    0
    #5
    When i tried to install PhpLD it was showing me that GDlib has not been installed.
    Now what should i do for that??
     
    seoindiaweb, Nov 15, 2006 IP
  6. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6
    well a captcha image is probably out. Maybe some sort of logic challenge? Set up a question which asks for a certain result such as 'what is 3 + 5?' You would need the numbers to be dynamic and change though.
     
    streety, Nov 15, 2006 IP
  7. Lordo

    Lordo Well-Known Member

    Messages:
    2,082
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    190
    #7
    How about a JavaScript captcha? If bots can't read images, they can't run javascript. So, generate a number with php, store it in a session, let javascript write it and then check it in the other page.
     
    Lordo, Nov 15, 2006 IP
  8. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #8
    And what if the user has Javascript disabled? He won't be able to use the contact form. I think a good captcha will solve this problem.
     
    nico_swd, Nov 15, 2006 IP
  9. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #9
    if GD's not installed, contact the server admin and request it be added. or move to a better host. ;)
     
    disgust, Nov 15, 2006 IP
  10. Lordo

    Lordo Well-Known Member

    Messages:
    2,082
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    190
    #10
    Yes you are right.
     
    Lordo, Nov 15, 2006 IP
  11. Fl1p

    Fl1p Active Member

    Messages:
    511
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #11
    Ok here's a great tutorial on image verification (CAPTCHA), there's a download link of the script at the bottom
    http://www.php-mysql-tutorial.com/user-authentication/image-verification.php

    To get this working you need GD Library installed on your server, to check run <?php phpinfo(); ?> and look for reference on GD, you can install if yourself click here you need root access to the server if you do not have the permission to install or dont know how ask your server admin to install if for you.

    Hope that helps :)
     
    Fl1p, Nov 15, 2006 IP
  12. seoindiaweb

    seoindiaweb Banned

    Messages:
    2,889
    Likes Received:
    200
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Thanx i have emailed my hosting server provider lets see i am waiting for his reply on the issue
     
    seoindiaweb, Nov 15, 2006 IP
Thread Status:
Not open for further replies.