title: Allow only Chrome Users to access webpage using JS?
body: <p>Thanks to anyone who solves/helps solving this request. Sorry if this is an impossible/previously asked request. I searched for it, couldn't find it, so posted a question.</p>
  
  <p>So, the issue is, that I want my page to be visible/usable only by Chrome users. And to other users, either display nothing when they try to access the page or Display a message stating: "Please use Google Chrome for Accessing this page"</p>
  
  <p>It is preferable if the code is in JS, but jQuery or PHP will also work.</p>
  
  <p>Thanks again.</p>
  
  <p>Best JS code:</p>
  
  <pre><code>var isChromium = window.chrome,
      vendorName = window.navigator.vendor,
      isOpera = window.navigator.userAgent.indexOf("OPR") &gt; -1,
      isIEedge = window.navigator.userAgent.indexOf("Edge") &gt; -1;
  if(isChromium !== null &amp;&amp; isChromium !== undefined &amp;&amp; vendorName === "Google Inc." &amp;&amp; isOpera == false &amp;&amp; isIEedge == false) {
     // is Google chrome 
  } else { 
     alert("Hello! I am an alert box!!");// not Google chrome 
  }
  </code></pre>