Debt Consolidation - Debt Consolidation - Kamala Harris - Free Animated Greetings - Articles directory

PDA

View Full Version : How could i Block Proxy Access to my website?


CuBz
Oct 1st 2007, 2:25 pm
I was wondering if it is possible to add a code to my site that would block people from accessing my website using an online proxy?

Thanks

nico_swd
Oct 1st 2007, 2:34 pm
<?php

if (@fsockopen($_SERVER['REMOTE_ADDR'], 80))
{
exit('Proxies are not allowed.');
}

?>


That'll may block a few other users as well though. But I guess that's the only way unless you want to collect and compare all known proxy IPs.