View Full Version : Hotlink Protection
rumrugby
04-12-2004, 03:11 AM
hi everyone,
i noticed on "lordphi1's" Liquenox.com website that a feature of his hosting is hotlink (where people can not use your bandwidth through taking files and images through links). How is this done?
thanks
113345
04-12-2004, 05:17 AM
Hi,
this is done through .htaccess.
Like:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://web49.nl/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.web49.nl/.*$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|snd)$ http://web49.nl [R,NC]
Example:
Whenever somebody tries to download a file with a direct address like http://web49.nl/i/php.gif they are redirected to your main page.
rumrugby
04-12-2004, 05:23 AM
cool thanks
deltaned
04-25-2004, 12:35 PM
on http://www.belspel.be/testpagina.htm I add an image on from my domain: nicegamez.com.
In the public_html flder I add the .htaccess file with the code like the start of this treat.
But nothing is redirecting to nicegamez.com :-(
Tips?
neorder
05-12-2004, 05:04 AM
hi, i did the same .htaccess file
but i've got a new problem.
all pictures under subdomain.mydomain.com can't be displayed, what's wrong? :confused:
113345
05-12-2004, 05:12 AM
Hi,
maybe it is best to only put this .htaccess in the directory that you want to protect.
jmstacey
05-12-2004, 03:48 PM
Perhaps it could be a new feature in directadmin?
A page with options to deny all but grant to self and to defined domains or allow all and deny to defined domains.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.