hi, i want to create a htaccess rule for not downloading zip files from my domain in specific directory...
www.abc.domain.com/dzfiles
i have this rule and it works but also it denied any request to any directory in this domain....
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?abc.domain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(zip)$ - [F]
the question is how can i prevent my zip files only in one directory....


Reply With Quote
Bookmarks