title: How to restrict access to web resources from internet but expose in intranet
body: <p>I have a website written in ASP.NET WebForms, which accesses web services that are written in ASP.NET WebAPI. For security, I closed port 8079 (web services) so that web services could only be accessed via the website, but that it would not be possible to request web services directly from the Internet. When I request a page on a website, through the Fiddler program, I see a request for a website, but I don’t see a request from a website for web services. Everything works well. But now I have made another website written in AngularJS and I want this website to also access my closed web services. Is this possible through AngularJS? Below is the request code for web services via ASP.NET website.</p>
  
  <pre><code>HttpResponseMessage response = 
  client.GetAsync("http://localhost:8079/api/values/5").Result;
  if (response.IsSuccessStatusCode)
  {
      Task&lt;string&gt; data = response.Content.ReadAsStringAsync();
      result += data.Result;
  }
  </code></pre>
  
  <p>As a result, the site(<em>AngularJS</em>) and ASP.Net MVC Web Application should be available on the Internet, and web services (<em>ASP.NET WebAPI</em>) should not be available on the Internet.</p>