Friday, October 21, 2022

Restricting WebAPI / Site via URLRewrite

We create websites and microservices. Let's say we want it to be publicly accessible and hosted on the IIS server. Due to security concerns, we are forced to limit access to various APIs and websites to specific IP ranges exclusively. This will limit access to our website's API to a select group of users.

This requires the usage of the URL Rewrite module extension in the IIS Server.

Download this from the link below.

https://iis-umbraco.azurewebsites.net/downloads/microsoft/url-rewrite

Sample configuration for restricting the IP range











Code Formater

Paste Here Your Source Code
Source Code Formatting Options
1) Convert Tab into Space :
2) Need Line Code Numbering :
3) Remove blank lines :
4) Embeded styles / Stylesheet :
5) Code Block Width :
6) Code Block Height :
7) Alternative Background :
Copy Formatted Source Code
 
Preview Of Formatted Code