title: IP restriction for a folder of a web application, in IIS7
body: <p>I have a web application, in which a web service resides in a folder. The whole web application can be accessed from anywhere, while the web service should only be accessed from certain IP addresses. I can't separate them and take the web service into another IIS web site, thus I need to restrict the access to the web service, while it resides in that web site. However, I have no limitation in creating <strong>virtual directories</strong>. What should I do? Can I do it at all?</p>
  
  <p>To understand the scenario better, suppose that the domain of the website is <code>www.sample.com</code>, and every address on this website is accessible to all the Internet. For example, <code>www.sample.com\path1</code> and <code>www.sample.com\path2</code> are browsable by everyone and every IP address out there.</p>
  
  <p>But the address of the web service <code>www.sample.com\services\user.asmx</code> should only be accessed from certain IP addresses, like <code>217.218.192.50</code> &amp;&amp; <code>107.50.27.30</code> for example.</p>
  
  <p>How can I achieve this configuration in IIS7?</p>