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.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.