tacoX
02-20-2005, 01:10 PM
Does anyone know the .htaccess code to directly ban a domain from hotlinking images (but NOT blocking all domains)?
![]() | View Full Version : Banning Domains from Hotlinking Images tacoX 02-20-2005, 01:10 PM Does anyone know the .htaccess code to directly ban a domain from hotlinking images (but NOT blocking all domains)? flashwebhost 02-20-2005, 04:34 PM Try this RewriteEngine on RewriteCond %{HTTP_REFERER} ^http://www.hot-linking-site.com/ [NC] RewriteRule \.(gif|jpe?g|png)$ - [F] tacoX 02-27-2005, 12:40 AM That didnt work, this is my current code: Options +FollowSymLinks ErrorDocument 404 /errors/404.gif RewriteEngine On RewriteCond %{HTTP_HOST} ^eagleimg\.com RewriteRule ^(.*)$ http://www.eagleimg.com/$1 [R=permanent,L] RewriteCond %{HTTP_REFERER} !^http://www\.eagleimg\.com/ RewriteCond %{HTTP_REFERER} ^http://www.gfxvoid.com/ [NC] RewriteRule \.(gif|jpe?g|png)$ - [F] |