hotlink protection

Lem0nHead

Verified User
Joined
Nov 28, 2004
Messages
265
hello

is there an option for easy adding hotlink protection to a domain on users DA?

thanks
 
Short answer: No, I don't think there is. There may be an Apache mod that allows you to safeguard certain MIME types against calls from foreign referrers, but I don't know of it. The general way (AFAIK) that hotlink protection is generally performed, is by making a script that is the default handler for images. In this script, the HTTP referrer header is checked against the image location requested. If they match, the image is passed through. If they don't, the viewer will get a "you dirty leecher" image.

I'm a bit too lazy to cook something up for you right now, but the strategy should be:
1. Make a simple script that passes through files based on the HTTP REFER header
2. Have Apache use this script for handling images.
 
AFAIK, the most popular method (and the one cpanel do it) is using apache mod_rewrite rules
 
Back
Top