Re: Restrict access via htaccess based on host |
by phoenyx on 2010/1/10 2:57:45 ok then. I just got it wrong ![]() Thank you for your answer. I didn't know that it doesn't effect the server. |
Re: Restrict access via htaccess based on host |
by Will on 2010/1/9 13:55:29 and it was answered. Either I am not understanding the question - or you aren't understanding the answer. using allow/deny does not block the server. just blocks http access for those on the deny list. |
Re: Restrict access via htaccess based on host |
by phoenyx on 2010/1/9 12:25:39 The question was whether it's possible to allow access to certain files only for the server itself (not for access via the client = brower) |
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 |
Re: Restrict access via htaccess based on host |
by phoenyx on 2010/1/8 11:34:44 Never mind. Seems not to work anyway. However, in case someone knows: Please answer anyway. This might be helpful for someone else as well. |