2017-12-12 10 views

답변

1

URLRewrite 2.x을 서버에 설치하면 web.config (system.webServer 섹션)에 다시 쓰기 규칙을 추가 할 수 있습니다. 이 같은.

<rewrite> 
    <rules> 
    <rule name="BlockEmpty" stopProcessing="true"> 
     <match url=".*"/><!-- Any url --> 
     <conditions> 
     <add input="{HTTP_USER_AGENT}" pattern="^$"/><!-- Empty --> 
     </conditions> 
     <action type="CustomResponse" statusCode="403" statusDescription="Forbidden"/> 
    </rule> 
    </rules> 
</rewrite> 
관련 문제