Nice resource, Amdac. I personally just added something similar to what I've got running. I've been having similar problems with hotlinking, so what I added was...
Code:
if ( $_GET["q"] && !(strpos( $_SERVER["HTTP_REFERER"], "http://www.proxyboys." ) === 0 || strpos( $_SERVER["HTTP_REFERER"], "http://proxyboys." ) === 0 || $_SERVER["HTTP_REFERER"] == "" )) {
Header( "Referer: http://www.proxyboys.com/" );
Header( "Location: http://www.proxyboys.com/index.php" );
}
Now, I'm not 100% sure that this will even work, and I tried to test it but then I realized that the HTTP_REFERER environment variable isn't even being set on my server, or at least not when I was trying to access it, but it should work in theory.
Difference is is that I added the part in where it allows the user to bypass the hotlink filter if they enter in the URL directly (or have it bookmarked). I also took in to account that some people access websites without using the "www" prefix.
Anywho, if someone uses this, let me know - just throw it at the top of your page before any includes etc. Curious to know if it works. I think my server is just a little borked (I'm terrible at managing my own VPS, so for all I know I left off some important Apache2 module when upgrading.)