I have an online tool that tracks tasks and users performing tasks. As part of the process, I write $_SERVER['HTTP_USER_AGENT'] . However, from time to time I get visits from different bots and scanners. How can I gently redirect them to another place without โinfringing on their feelingsโ?
I thought that I want to build an array with the names of the bots and run every AGENT information against it, and if it is found in the array, we redirect it.
Is there a better way to do this?
santa source share