one of my proxy in my network is probely hotlinked i got about 100 view daily on it and 20gig data transfer for very low hits. im sure someone post link of picture using my url. how can i stop this please ? 22 Jan 2008 114 18748 19229 2.61 GB 23 Jan 2008 255 67840 69064 20.28 GB
Assuming that is the cause, you should get a script that prevents hotlinking. The one in PHProxy can be bypassed, but I'm pretty sure Glype is safe.
I was going to suggest that but I have a better code for the phproxy and allows proxy.org since they delist you if you dont have it like this... $domain=$_SERVER['HTTP_HOST']; $domain2="proxy.org"; if($_GET['q']!=""){ // If no request: $referer=$_SERVER['HTTP_REFERER']; // Get referer $count=substr_count($referer,$domain); // Check to see if referer is not the proxys domain $count2=substr_count($referer,$domain2); // Check to see if referer is not the proxy.org if($count!=1 && $count2!=1){ // If there is an outside referer: if($_GET['q']!=""){ // If there is a request: header("Location: http://" . $domain . "/"); // Redirect to homepage and finish script exit(); } } } Code (markup): thewird
I fine my self leaning more towards glype all the time, sometime soon i will have to completely switch from phproxy to glype.
If you do not want to depend on others then .htaccess solution better: RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yoursite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L] Code (markup): If phpproxy RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yoursite\.com/ [NC] RewriteCond %{HTTP_REFERER} ^http://(.+\.)?proxy\.org/ [NC,OR] RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L] Code (markup): replace yoursite to your and create nohotlink.jpe
I'm pretty sure it looks like you don't need to put your domain in. $domain=$_SERVER['HTTP_HOST']; It does it for you.