Smarter Image Hotlinking Prevention

use PHP and mod_rewrite to redirect hotlinks to a targeted page