Kentico 的白名单管理部分

Whitelist admin section of Kentico

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

将以下部分添加到您的 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>