2014-08-24, 01:26:36
Info about browserconfig.xml: http://msdn.microsoft.com/en-us/library/...s.85).aspx
This blocks access to the browserconfig.xml file in the root directory:
Like sitemap.xml, browserconfig.xml should be allowed, for example:
This blocks access to the browserconfig.xml file in the root directory:
Code:
# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
<IfModule mod_access_compat.c>
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
</IfModule>
</Files>
Like sitemap.xml, browserconfig.xml should be allowed, for example:
Code:
<Files ~ (sitemap|browserconfig)\.xml>
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>
<IfModule mod_access_compat.c>
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
</IfModule>
</Files>