Revert "Another approach to restrict the browser user agent"

This reverts commit 15e712c1f5ce156d2a5dbc333a9ae4704076819f.