1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help proxy HotLinked

Discussion in 'General Business' started by DnHype, Jan 24, 2008.

  1. #1
    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
     
    DnHype, Jan 24, 2008 IP
  2. thewird

    thewird Peon

    Messages:
    647
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Link to your proxy?

    thewird
     
    thewird, Jan 24, 2008 IP
  3. llamafier

    llamafier Peon

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    llamafier, Jan 24, 2008 IP
  4. thewird

    thewird Peon

    Messages:
    647
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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
     
    thewird, Jan 24, 2008 IP
  5. SUB

    SUB Well-Known Member

    Messages:
    577
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    108
    #5
    I fine my self leaning more towards glype all the time, sometime soon i will have to completely switch from phproxy to glype.
     
    SUB, Jan 25, 2008 IP
  6. redvok

    redvok Active Member

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #6
    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
     
    redvok, Jan 25, 2008 IP
  7. iowadawg

    iowadawg Prominent Member

    Messages:
    10,918
    Likes Received:
    811
    Best Answers:
    0
    Trophy Points:
    380
    #7

    Exactly where would I put my domain name in the above code?
     
    iowadawg, Jan 25, 2008 IP
  8. llamafier

    llamafier Peon

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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. ;)
     
    llamafier, Jan 25, 2008 IP