mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
18 lines
680 B
Scheme
18 lines
680 B
Scheme
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Configuration to block web access to secure folders
|
|
-->
|
|
<configuration>
|
|
<system.webServer>
|
|
<rewrite>
|
|
<rules>
|
|
<clear />
|
|
<rule name="BlockProtectedAssets" patternSyntax="Wildcard" stopProcessing="true">
|
|
<match url="*" />
|
|
<action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page using the credentials that you supplied." />
|
|
</rule>
|
|
</rules>
|
|
</rewrite>
|
|
</system.webServer>
|
|
</configuration>
|