Using IP Restrictions with URL Rewrite-Week 25

Posted by OWScott on ASP.net Weblogs See other posts from ASP.net Weblogs or by OWScott
Published on Tue, 21 Jun 2011 14:31:20 GMT Indexed on 2011/06/21 16:23 UTC
Read the original article Hit count: 475

Filed under:
|
|
|

URL Rewrite offers tremendous flexibility for customizing rules to your environment. One area of functionality that is often desired for URL Rewrite is to allow a large list of approved or denied IP addresses and subnet ranges.

IIS’s original IP Restrictions is helpful for fully blocking an IP address, but it doesn’t offer the flexibility that URL Rewrite does.

An example where URL Rewrite is helpful is where you want to allow only authorized IPs to access staging.yoursite.com, but where staging.yoursite.com is part of the same site as www.yoursite.com. This requires conditional logic for the user’s IP.

This lesson covers this unique situation while also introducing Rewrite Maps, server variables, and pairing rules to add more flexibility.

This is week 25 of a 52 week series for the Web Pro. Past and future videos can be found here: http://dotnetslackers.com/projects/LearnIIS7/

You can find this week’s video here.

© ASP.net Weblogs or respective owner

Related posts about iis

Related posts about iis7