Problem with image verification

Discussion in 'PHP' started by otakatun, Nov 3, 2010.

  1. #1
    I have write a simple code for image verification(something like captcha) to prevent a spam been send from my website contact form.

    However, there's a problem where as it seem the robot/spammer can bypass this script.
    I need help for understanding the better way for preventing this can be happen(so I will only receive a valid msg from the user).

    The way I am storing the verification code is by stored it in a $_SESSION

    Thanks in advance
     
    otakatun, Nov 3, 2010 IP
  2. krishmk

    krishmk Well-Known Member

    Messages:
    1,376
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    185
    #2
    plz. post your PHP code so that we can help...
    However if the spam messages are submitted by Human Beings.. its very difficult to stop them..
     
    krishmk, Nov 3, 2010 IP
  3. otakatun

    otakatun Well-Known Member

    Messages:
    388
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Hi krishmk,

    Sorry coz not showing the code, so here it is:

    The image constructed script:
    The form validation script(some part of it:

    The way Im thinking right now, is to md5 the code and save it into session....

    So what do you think?
     
    otakatun, Nov 3, 2010 IP