Ddr
6-23-02, 06:22 PM
I know there was a thread about this not too long ago, but couldn't find it, sorry.
I can get .htaccess to stop gif and jpg file hotlinking, but I am unable to get the restricted.bmp image to show in place of a broken link on the remote site. I made the restricted image a bmp, because the rule restricts transfer of jpg and gif images. I can hotlink directly to the restricted.bmp image with no problem. I just cant get .htaccess to make this happen automatically.
My pics are labeled correctly, everything is lower case, spelled correctly, uploaded to the right places and with the right format. The .htaccess file looks like this:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://dale.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.dale.com/ [NC]
RewriteRule [^/]+.(gif|jpg)$ http://www.dale.com/springbash/images/restricted.bmp [R,L]
BTW, www.dale.com if fictitious. Sorry, but I dont want anyone going into this site at the moment. I know it makes it more difficult to troubleshoot, but I need to do this this way. Can anyone spot a problem with the code? Thanks in advance
Dale
I can get .htaccess to stop gif and jpg file hotlinking, but I am unable to get the restricted.bmp image to show in place of a broken link on the remote site. I made the restricted image a bmp, because the rule restricts transfer of jpg and gif images. I can hotlink directly to the restricted.bmp image with no problem. I just cant get .htaccess to make this happen automatically.
My pics are labeled correctly, everything is lower case, spelled correctly, uploaded to the right places and with the right format. The .htaccess file looks like this:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://dale.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.dale.com/ [NC]
RewriteRule [^/]+.(gif|jpg)$ http://www.dale.com/springbash/images/restricted.bmp [R,L]
BTW, www.dale.com if fictitious. Sorry, but I dont want anyone going into this site at the moment. I know it makes it more difficult to troubleshoot, but I need to do this this way. Can anyone spot a problem with the code? Thanks in advance
Dale