qwertyuiop
05-07-2005, 10:20 PM
Hi,
I already have an htacces file. I was looking for how to make the hotlinked image be replaced with a "stolen" image. Where do I add it?
Original:
Options All -Indexes
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*google.([^/]+)/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://.*google.([^/]+)$ [NC]
RewriteCond %{HTTP_REFERER} !^http://othersite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|swf|cur|ani|mid|mp3|mov|wma)$ - [F,NC]
Where do I put this:RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|bmp|png)$ /images/stolen.gif [L]
I already have an htacces file. I was looking for how to make the hotlinked image be replaced with a "stolen" image. Where do I add it?
Original:
Options All -Indexes
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*google.([^/]+)/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://.*google.([^/]+)$ [NC]
RewriteCond %{HTTP_REFERER} !^http://othersite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|swf|cur|ani|mid|mp3|mov|wma)$ - [F,NC]
Where do I put this:RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|bmp|png)$ /images/stolen.gif [L]