this one is good aswell
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www\.yourdomain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://64.88.185.39.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$
http://www.bannerfarm/links.shtml
ErrorDocument 404
http://www.bannerfarm.com/links.shtml
ErrorDocument 403
http://www.bannerfarm.com/links.shtml
Options -Indexes
it will stop them from directory browsing where there is no index files. and redirect your 404 and 403 to wherever.
Muff