QUOTE (maze)
The requests very certainly over 100 per second, ...
It's easy to DoS you server then. Even my celeron can handle that kind of load on static images -- and that's 1000+ concurrent connections at low load. The trick is to use lighttpd instead of apache, especially for static content. Then again... while it's great that you could easily saturate 100mbit/s, you probably wouldn't like the bandwidth bill.
What you need is mod_rewrite, either directly in apache or in a .htaccess file. I have the following in my config:
CODE
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/images/pub/
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mydomain.com.* [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com.* [NC]
RewriteRule ^/images/pub/(.*) http://slow.mydomain.com/pub/$1 [L]
What I do is to reroute the people to an unmetered server that's going to throttle them. You could disable it entirely with [F] or better yet, point them to a nice flashy .gif file that says "hotlinking is for losahs!"... or a nice big ad for your website, so you may get more visitors out of it.
Note that I do give requests without referer the benefit of the doubt (line with !^$). Whether you do that too depends on whether the malicious views have a referer set or not.