Forum Moderators: phranque

Message Too Old, No Replies

Disable POST request to a particular page?

         

foxfox

2:48 pm on Sep 4, 2007 (gmt 0)

10+ Year Member



E.g. my index.php wouldn't not allow POST, but many spammer post large ammount of data to this page, I don't know why.

Is it possible to block these requests as soon as possible so as to save my server power/bandwidth?

Thanks.

jdMorgan

11:56 pm on Sep 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can ask your host if it's possible for them to block the requests with their hardware firewall, or with the software firewall available in many *nix installations. That would prevent the request from arriving at your server.

However, once the request arrives at your server, Apache will give *some* answer; It will either just accept the POST (and do nothing with it), or it may return some response. If the length of this response is short, then there's little to be gained by coding a special handler for these POSTs. Check your raw server access log to see what the server's response length is.

Jim