Hotlinking, htaccess and excluding subdomains

Soldato
Joined
16 Nov 2003
Posts
9,682
Location
On the pale blue dot
Hi guys,

My bandwidth is currently being sucked up by a bunch of warez and torrent sites that are leeching an image and so I've been experimenting with rules in htaccess to redirect them to a lovely picture of a a nearly-naked Todd from Scrubs. Go on, Google Image search that, you know you want to.

What I want to do it limit the impact this is going to have on legitimate requests. Therefore I have two questions:

  • What is the 'scope' of htaccess? I want to exclude subdomains from this list of rules so that my sub folders, that contain my signature picture for example, are not replaced with a naked man :eek:.
  • How can I allow 'direct' access, to images, so that if you type the address directly, you still get the correct image.
 
Back
Top Bottom