0

I am trying to make a website with features only available on browsers with WebKit engines, So I wanted a website to be get loaded only when it detects WebKit browser and redirects to an alternative website if the host's browser doesn't use Webkit, Is it possible through Javascript or any Back-end languages? If yes, How can it be done?

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.