No more hotlinking

I discovered from my webserver's logs, that more and more people hotlink to my photos and images – an attitude I don't really appreciate.
So I wrote a little hotlink filter with .htaccess:

[code]RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(mm\.)?smile-to-me\.de/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|bmp|png)$ images/hotlinking.gif [L][/code]

So when someone tries to hotlink to images hosted on my server, he gets this nice pic:

Kommentar verfassen