Kentico的白名单管理部分

时间:2017-01-31 16:23:06

标签: asp.net web-config ip kentico whitelist

我不喜欢世界看到我的Kentico网站的管理界面。 Kentico允许您为管理页面创建一个新文件夹,但现有文件夹仍在那里,其页面仍然可访问。我想通过IP将管理文件夹列入白名单。

1 个答案:

答案 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>