웹 서버에 URL Rewrite을 설치하고 web.config system.webServer
섹션에 다음 다시 쓰기 규칙을 추가하십시오. 이로 인해 IIS가/admin 아래의 모든 URL을 가로 채고 서버에 로컬 인 URL에 있지 않으면 403을 반환해야합니다. URL 일치를 조정하거나 다른 Kentico 관리 경로 (예 : CMSAdministraton.aspx 등)에 대한 규칙을 추가해야 할 수도 있습니다.
<rewrite>
<rules>
<rule name="Block Remote Access to Admin" stopProcessing="true" patternSyntax="ECMAScript" enabled="true">
<match url="admin(/|$)" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{REMOTE_ADDR}" pattern="localhost" ignoreCase="true" negate="true" />
<add input="{REMOTE_ADDR}" pattern="127.0.0.1" negate="true" />
<add input="{REMOTE_ADDR}" pattern="::1" negate="true" />
</conditions>
<action type="CustomResponse" statusCode="403" statusDescription="Forbidden" statusReason="Access to this URL is restricted"/>
</rule>
<rules>
</rewrite>