try this:
RewriteRule (.*)\.(php|htm|html|inc|jpg|jpeg|gif|png|bmp|swf|mpg|avi|wav|mp3|zip|tgz|bak|doc|pdf)$ - [F,L]
I don't *think* you can use NC in this line. Pay attention to the parens I placed in front.
edit:
Actually, that list of extensions looks pretty comprehensive. I actually don't see anything that COULD be accessed. If it is your intent to block everyone who tries to deep link, you might just use this line:
RewriteRule .* - [F,L]
You also could simplify your rewrite rules like this: replace all 4 lines you have with this one:
RewriteCond %{HTTP_REFERER} !(mydomain) [NC]
This picks up all the variants that you want to pick up, though it also would pick up things you didn't intend such as mydomainrules.com
Last edited by jiml8; 08-31-2007 at 07:14 PM.
|