I need a bit of help. Today i wanted to implement an .htaccess-file on my server, which seemed like a relatively simple operation. Save a file as .htaccess in the root-directory of the server with the following lines:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?lfs.nl/.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]

Trouble is, it doesn't work. It prevents all files, even html and php from being seen. I tried changing permissions, once to 755, once to 644, but that didn't help. So i'm wondering what im doing wrong. Maybe the server is configured in such a way that it can not work, i dont know. So if anyone has a clue...

If no one does, I will ask at work tomorrow, the sysadmins should know something - hell, its their job. But it would be nice to fix it on my own.

Question is: why would i wanna do this. Well, look at the referers in the webstats:

The top 25 are all sites which use images from this site. A couple of months ago i did some research, and what they use most are old gifanimations. I don't mind that people use images from this site, but if they want to, they should save the image they wanna use to their own site. This way a lot of my bandwidth gets used up and it makes the webstats completely unusable. It hasn't bothered me much since i found out, i wasn't working on lfs anyway, but today, while talking about things like this on a break at work, i suddenly decided that today it must end!

Well, seems today isn't that day. Hopefully tomorrow.