0

I am trying to make a website with features only available on browsers with WebKit engines, So I wanted the website to be displayed only on WebKit browsers and redirect to an alternative website if the host's browser doesn't use Webkit, Is it possible? If yes, How can it be done?

Anoncode Toon
  • 61
  • 1
  • 5

2 Answers2

1
    document.onload=function() { 
    if(navigator.userAgent.indexOf("Chrome") === -1 )
    {
      window.location.replace("http://www.stackoverflow.com");
    }}
0

You can redirect the traffic based on user agent to different endpoints before it arrives to your origin. It depends on your InfraStructure. for Ex you can use Big-IP or Stingray with TrafficScript or also with AWS-cloudfront and Lambda functions.