Click to See Complete Forum and Search --> : How to limiting the number of form submission per IP address


JayCally
05-21-2007, 01:16 PM
I've downloaded the novice forms script and got it to work correctly, the only problem is submission flooding. I get tons of blank forms. I tested it like crazy before I went live with the form, everything was fine and it works correctly.

When you submit the form it is processed correctly. I don't if its spiders or what.

How can I stop all of these empty form submissions? Is there a function I can add to limit the number of form submission per IP address?

disgracian
05-30-2007, 05:26 AM
If empty submissions are a problem then you should be able to do a relatively simple check for that before writing the submitted data somewhere, something along the lines of:if($data ne ""){ doSomething(); }
else{ doNothing(); }Or if you require the IP option, just record it using $ENV{REMOTE_ADDR} and compare on that.

Cheers,
D.

JayCally
05-30-2007, 02:23 PM
I'm using novice forms cgi script. How would I change it? I'm very new to scripting.

disgracian
05-31-2007, 01:38 AM
Start here (http://www.perl.org/books/beginning-perl/).

Cheers,
D.