View Single Post
Old 2005-02-14, 07:43 PM   #5
BlueQuartz
The only guys who wear Hawaiian shirts are gay guys and big fat party animals
 
BlueQuartz's Avatar
 
Join Date: Jun 2004
Posts: 175
have you sorted this out yet?

best way is to drop a htacess in your root and allow requests from your domain only

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://your-ip [NC]
RewriteRule [^/]+\.(exe|mpeg|mpg|avi|mp3|gif|jpg|JPG|GIF|MP3|AVI|JS|js)$ - [F]
RewriteRule ^/cgi-bin/.+$ - [F]
AddHandler server-parsed html
ErrorDocument 404 http://www.yourdomain.com/404.htm
BlueQuartz is offline   Reply With Quote