Hi
In the last month my server uploaded over 10G of images via websites that include images from my server. I'd like to stop that
I'm running apache2 on Slackware 12. I have mod_rewrite enabled.
I've tried following
http://www.besthostratings.com/artic...t-linking.html but it doesn't work so well.
Here are the contents of my htdocs/misc/testimageblock/.htaccess:
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^-$
RewriteCond %{HTTP_REFERER} !^http://(www.)?littlesvr.ca.*$ [NC]
RewriteRule \.(gif|jpg|png)$ http://littlesvr.ca/misc/not-hosted-here.png [F]
I can get to it via:
http://littlesvr.ca/misc/testimagebl...spose-none.png
but not via:
http://www.littlesvr.ca/misc/testima...spose-none.png (this is not what i want)
http://cdot.senecac.on.ca/projects/toaster/2.html (this is not exactly what i want, the replacement image isn't shown)
And I keep seing 200 responses for images from
http://www.fretsonfire...wherever
So I guess it doesn't work
Help, anyone?