title: How to block all web requests on Windows 10, unless my custom whitelist approves it?
body: <p>I'd like to write a very simple web traffic blocker for my kids using C#. <strong>I'm an experienced C# developer.</strong> I'd like the following basic features:</p>
  
  <ul>
  <li>The whitelist is linked to a specific Windows 10 user account (the program would know who is logged in)</li>
  <li>All websites blocked unless specifically whitelisted</li>
  <li>This little piece of software cannot be shutdown or uninstalled except by the admin</li>
  <li>When a blocked site is attempted to be accessed, a popup would come up from my program that allows the user to request access.</li>
  <li>This program needs to be lower-level than any browser, so it blocks traffic in all browsers, and even programs that embed browser controls or browser-like capabilities. I'm guessing the OS is aware when web requests are initiated and which sites are being requested, so I need to know how to tap into that OS-level event.</li>
  </ul>
  
  <p>I've never done any programming that blocks web traffic so I'm looking for a source code example of doing this. Also how can I prevent the software from being stopped or removed, unless a password is supplied?</p>
  
  <p>I'm asking for advice and to be pointed in the right direction...not for any other help. Minimal code samples or links that demonstrate how to accomplish my requirements would be very helpful and greatly appreciated.</p>
  
  <p>Note: I have google searched and can't find anything that quite works the way I want, so I'd like to build my own. Thanks in advance.</p>