My current website runs only in Chrome browser, to do this I have checked in following way
if (Request.Browser.Browser == \"Chrome\") { // Allow }
if(HttpContext.Current.Request.UserAgent.Contains("Edge")) { // Allow }
Worked for me.