-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
30 lines (30 loc) · 1.17 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="system.webServer">
<sectionGroup name="rewrite">
<section name="rewriteMaps" overrideModeDefault="Allow" />
<section name="rules" overrideModeDefault="Allow" />
</sectionGroup>
</sectionGroup>
</configSections>
<system.webServer>
<httpErrors errorMode="Detailed" existingResponse="PassThrough" />
<rewrite>
<rules>
<rule name="Block web access company data" stopProcessing="true">
<match url="^data/files/1/.*" />
<action type="AbortRequest" />
</rule>
<rule name="Block web access cache files of TCPDF" stopProcessing="true">
<match url="^library/tcpdf/cache/.*" />
<action type="AbortRequest" />
</rule>
<rule name="Block web access internal backups files" stopProcessing="true">
<match url="^data/files/backups/.*" />
<action type="AbortRequest" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>