Re: Restrict access via htaccess based on host |
Subject: Re: Restrict access via htaccess based on host by Will on 2010/1/9 12:20:19 I am not sure which file you are trying to block - but its rather simple to do whatever the file is. you would need to use an allow deny rule. ex:
<Files ~ "^\.xml">
Order allow,deny
Deny from all
</Files> You can do specific filenames whatever. you can also allow say only certain refers to access.
<Files ~ "^\.xml">
Order allow,deny
Deny from all
Allow from .somedomain.com
Allow from .someotherdomain.com
</Files> Check it HTH |