Forum Moderators: coopster & phranque

Message Too Old, No Replies

Formmail ANTI-Multiple sends

so they can only submit once

         

The_Hat

5:10 am on Sep 20, 2005 (gmt 0)

10+ Year Member



This is completly beyond me, and i am not ashamed to say it.

Formmail setup, asp enabled server, need a way to make it so that the user is unable to submit that form more then one time from their ip. (or computer, or browser session, anything)

Would really appreciate some "drop in" code or a pointer.

I did do some looking around on the net and found a bit out there about setting a cookie and then having the form check for the cookie before it submits but i am out of my element on this stuff.

Any help greatly appreciated. Thanks

KevinADC

6:25 am on Sep 20, 2005 (gmt 0)

10+ Year Member



it will help to say what language the script is written in. Most people think of Formmail as a perl/CGI script, but there are PHP and ASP versions and probably others as well.

The_Hat

7:39 pm on Sep 20, 2005 (gmt 0)

10+ Year Member



It is just a regular old cgi-bin/formmail.pl setup. Thanks for any help you can give.

KevinADC

8:28 pm on Sep 20, 2005 (gmt 0)

10+ Year Member



unfortunately, short of requiring people to signup for a username/password and requiring people to login to use the script, I don't see a good way to limit use to once. Cookies can easily be thwarted. You can log IP numbers and check against a list but it's pretty easy to use a proxy to change the IP.

Is it people or bots you are having trouble with? Maybe using a captcha image will cut down on abuse if its bots. Thats not going to be easy though, nor will it be drop in code.

The_Hat

5:58 pm on Sep 21, 2005 (gmt 0)

10+ Year Member



Actually I think just having it set a cookie would be sufficient, the users that would be using the form are not particularly technical and I would imagine that this would be easier to implement then the captcha images.

How would I go about having the form set a cookie and then also check for it before submitting.

Thanks again for all the help everybody.