How do I prevent automated form submission?

Discussion in 'PHP' started by mahmood, May 26, 2006.

  1. #1
    How would you prevent an automated form submit so that only people from the form page can submit a form?

    The problem with automated form submission is that some keep spamming.
     
    mahmood, May 26, 2006 IP
  2. rosytoes

    rosytoes Peon

    Messages:
    230
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    how about adding a captcha to your form?
     
    rosytoes, May 26, 2006 IP
  3. MatthewN

    MatthewN Well-Known Member

    Messages:
    859
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    195
    #3
    Yep, some kind of image verification will sort em out!
     
    MatthewN, May 26, 2006 IP
  4. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Captcha + referrer checking, making sure the submitted stuff actually came from your form page. Though the latter can easily be spoofed, but with a session ID or captcha verification it's pretty tight.
     
    T0PS3O, May 26, 2006 IP
  5. Bartbos

    Bartbos Peon

    Messages:
    29
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Don't use referrer checking since users can disable this and I think that norton (firewall) does this automatically.

    You can either use a captcha, or after the person submits the form make them click on another button before it gets sent to you/inserted in the db. The automated programs likely won't know that.
     
    Bartbos, May 27, 2006 IP
  6. mahmood

    mahmood Guest

    Messages:
    1,228
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Seems a good combination, I put a confirm button and give users the last chance for editing what they have entered on the form.
     
    mahmood, May 27, 2006 IP
  7. reza56

    reza56 Active Member

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #7
    reza56, May 28, 2006 IP