Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


wiki:directory_access_security_in_iis

Add a web.config file to the root of your DokuWiki website

Add a web.config file to the root of your DokuWiki website to block web access to these directories: /data/, /conf/, /bin/, and /inc/.

web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <security>
            <requestFiltering>
                <filteringRules>
                </filteringRules>
                <denyUrlSequences>
                    <add sequence="/data/" />
                    <add sequence="/conf/" />
                    <add sequence="/bin/" />
                    <add sequence="/inc/" />
                </denyUrlSequences>
            </requestFiltering>
        </security>
    </system.webServer>
</configuration>
wiki/directory_access_security_in_iis.txt · Last modified: 2017/10/28 19:03 (external edit)