Another approach to restrict the browser user agent

Refs #825