[xyz-ips snippet=”user-agent”]

You can access a client’s transmitted user-agent header through the $_SERVER[‘HTTP_USER_AGENT’] variable.

Note that his header can easily be forged with browser plugins, or other configuration.