我不喜欢世界看到我的Kentico网站的管理界面。 Kentico允许您为管理页面创建一个新文件夹,但现有文件夹仍在那里,其页面仍然可访问。我想通过IP将管理文件夹列入白名单。
答案 0 :(得分:3)
将以下部分添加到您的web.config中。这将为admin文件夹启用IP白名单。更多详情here。
<location path="Admin">
<system.webServer>
<security>
<ipSecurity allowUnlisted="false" denyAction="NotFound">
<clear />
<add allowed="true" subnetMask="255.255.255.255" ipAddress="987.654.321.012" /> <!-- add your IP here -->
</ipSecurity>
</security>
</system.webServer>
</location>