Found this code on the web:
<?php if(@fsockopen($_SERVER['REMOTE_ADDR'], 80, $errstr, $errno, 1))
die("Proxy access not allowed"); ?>
Which finally killed that damned HMA "Proxy" website which was stealing all our content. (I use the word "proxy" loosely as for all intents and purposes they are a content theft site as the proxy pages are kept and left for search engines to index and rank.)
Anyway, it only works on pages with .php but not if they have anything AFTER the .php
e.g. /folder/page.php?type=45
How do I get this code to function when parameters are being passed?
Thanks
Mike