Restrict portions of an IIS 7.5 site to a list of IP addresses

We are using a purchased Java/Tomcat product on our Windows 2008 R2 (IIS 7.5) servers.   This product offers web services to which we'd like to filter access by IP address.    These services are contained within the same URL folder (example:   But we only wish to limit access to that folder.  The primary site should remain free to all.

I know that you can restrict acccess to the entire site by IP address.   But is there a way to control just isolated pieces that way?

Thank you.
Who is Participating?
RichardKlineConnect With a Mentor Author Commented:
I found the answer:   Microsoft URL Rewrite Module 2.0 for IIS 7

Microsoft's description: URL Rewrite Module 2.0 provides a rule-based rewriting mechanism for changing requested URL’s before they get processed by web server and for modifying response content before it gets served to HTTP clients.

It probably does that :)   But I use it to create rules in a web.config file that are used to control per IP address access to specific site folders.
Ive never run into a situation where this has been required but, my first guess would be try and restrict it by virutal directory and ip combination.  Not sure this will work but, hey its worth a shot.  When I get to where I have access to a web server again ill do some more digging for you.  Try doing the IP Address & Domain Restrictions piece when clicking on that directory you want to secure.
How to configure Web server permissions for Web content in IIS

This should help you
RichardKlineAuthor Commented:
binaryevo:   I'l  take a look.  Thanks!

vinsvin:  This method assumes that IIS can determine the user's account information.   This site is Java/Tomcat and uses non-AD authentication methods.   So the necessary information is hidden from IIS.     But Thanks!
RichardKlineAuthor Commented:
I found the solution myself but wanted to post this as information for others and not just delete the question.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.