title: How can I make my website work only for Windows users using JavaScript?
body: <p>I am able to extract the user`s OS using JavaScript
  code:</p>
  
  <pre><code>if (navigator.appVersion.indexOf("Win") != -1)
  </code></pre>
  
  <p>But i am not able to block users of other OSs from accessing the site.</p>