Quote:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} .*jpg$|.*gif$|.*png$|.*zip$|.*pdf$|.*rar$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !yoursite\.com [NC]
#RewriteCond %{HTTP_REFERER} !friend-site\.com [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search.php\?query=cache [NC]
RewriteRule .*\.(gif|jpg|pdf|zip|rar)$http://your-tricky-image.jpg [R,NC]
Line with "friend-site" is to allow a partner site link your images.
Line with "google" is to allow google to show your images.
Line with "your-tricky-image.jpg" put any image (1600x1200 o more recommended ).
If you don't want to show any image you can change this to:
Quote:
RewriteRule (.*) /your-code.php?param=$1
I hope this is usefull!