View Single Post
Old 03-28-2002, 02:27 PM  
Dreamman010
Confirmed User
 
Join Date: Jan 2002
Location: Toronto, ON, Canada
Posts: 1,081
Quote:
Originally posted by ihateastro
your .htaccess file will handle this. If you're using apache (which you should be), have your admin make sure the mod_rewrite is installed and running. Then add the appropiate coding that will stop everyone from pulling that file or any file from your site unless it is requested from your site itself. Hope that made sense.

add this to the .htaccess

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteRule .*\.mpg$ - [L]

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteRule .*\.mpeg$ - [L]

hope that helps

Not quite correct. What if the filename ends with .mPg ? BUMP!
You'd better make it look this way:
RewriteRule .*[Mm][Pp][Gg]$ http://www.domain/hotlink.jpg

You could create an image that would look like "This image is hosted by blablabla.com"

My :2 cents

Dreamman
__________________
<a href="http://www2.famoushost.com/home.php" target="_blank"><b><FONT COLOR="FFFF00">www.FamousHost.com</font></b></a><br>Free Hosting With No Headers, Real FTP, <u>Get listed on the biggest TGP's with us!</u>
Dreamman010 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote