Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Gunnar Hjalmarsson
May 9, 2009, 11:56 pm
rate this thread
I wrote a Perl module that can be used to block HTTP requests from open
proxies. The intended purpose is to prevent bogus form submissions.
Before the request is further processed, the module grabs REMOTE_ADDR
and does the following:
* Takes a few ports that are commonly used by open proxies and lets Nmap
determine which of those ports are open at REMOTE_ADDR.
* Attempts to use each of the open ports as a proxy, and if any of the
requests would succeed, sends a 403 error and exits.
Once the module has been configured and installed, and assuming that
Perl is the programming language, all I need to do is inserting these
two lines in the beginning of the form processing script:
I would appreciate your comments on both the approach as such and the
- » FAQ 7.7 Why do Perl operators have different precedence than C operators?
- — Next thread in » PERL Discussions
- » FAQ 6.13 What does it mean that regexes are greedy? How can I get around it?
- — Previous thread in » PERL Discussions