Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   RFC: CPAN module for blocking open proxy requests (http://www.velocityreviews.com/forums/t913398-rfc-cpan-module-for-blocking-open-proxy-requests.html)

Gunnar Hjalmarsson 07-14-2010 09:21 PM

RFC: CPAN module for blocking open proxy requests
 
[ also posted to PerlMonks/Meditations ]

I have uploaded HTTP::ProxyTest to CPAN.
http://search.cpan.org/perldoc?HTTP::ProxyTest

<quote README>
Robots that send comment spam are often hidden behind anonymous open
proxy servers. You can use HTTP::ProxyTest to look for open proxies
on-the-fly and prevent such spam robots from submitting their crap. The
module is particularly useful if you don't want to bother your web site
visitors with CAPTCHAs etc.

HTTP::ProxyTest tests certain ports of REMOTE_ADDR that are often used
for anonymous open proxies, and denies access if an open proxy is found,
i.e. it responds with status "403 Forbidden" and exits.
</quote README>

I have been using that approach to fighting comment spam for more than a
year, and it has proved to work well.
http://groups.google.se/group/comp.l...ed3e1a2cc3f15b

Your comments on both the usefulness of HTTP::ProxyTest and the code
would be much welcome. Since the module source is conveniently available
at CPAN, I did not post it here.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


All times are GMT. The time now is 11:21 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57