Limit access to .XML, .XSLT, and .MRT files
Version:
To improve the security of your Sitecore installation, you must edit the web.config file. This file is stored in the Website folder of your installation, for example at: C:\Inetpub\wwwroot\YourWebsite\Website.
To limit access to .XML, .XSLT, and .MRT files:
-
Open the
web.configfile. -
In the
<system.webServer><handlers>section, add the following lines:
This restricts access to all .XML, .XSLT, and .MRT files.
To allow a specific file path to be accessed in an unrestricted manner, such as, /sitemap.xml:
-
Open the
web.configfile. -
In the
<system.webServer><handlers>section, before the handlers that limit access, add the following line: