Restricting the Access to Portal According IP
Customers using the on-premise version are able to restrict their own access to the admin portal according to an IP address. It is possible to use this feature by adding the codes below to the web.config file.
<rewrite>
<rules>
<rule name="Block login page" stopProcessing="true">
<match url="^Modules/User/Login.aspx" />
<conditions>
<add input="{Authorised Admin IPs:{REMOTE_ADDR}}" pattern="1" negate="true" />
</conditions>
<action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
</rules>
<rewriteMaps>
<!-- This is your list of white-listed IP's-->
<rewriteMap name="Authorised Admin IPs">
<!-- Local IP Addresses-->
<add key="127.0.0.1" value="1" />
</rewriteMap>
</rewriteMaps>
</rewrite>
Copy link