LoginSignup
10
5

More than 3 years have passed since last update.

Chromeのユーザエージェント固定された時のUA文字列

Last updated at Posted at 2020-01-27

Blinkの開発者用メーリングリストで「Intent to Deprecate and Freeze: The User-Agent string」とアナウンスされた通り、Chromeでユーザエージェントを固定する計画が発表されました。

具体的にどのような文字列になるか確認する

開発版で試す

開発版であるChrome Canaryでは chrome://flags より設定することで、これを有効にできます

有効とする以下のようなユーザエージェントがつくようになります。
User Agent Client Hints(参考URL)ではChrome 81になっています。

文字列定義

PC

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3764.0 Safari/537.36

Android

Mozilla/5.0 (Linux; Android 9; Unspecified Device) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3764.0 Safari/537.36

mobile

Mozilla/5.0 (Linux; Android 9; Unspecified Device) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3764.0 Mobile Safari/537.36

定義はここから確認できます
https://cs.chromium.org/chromium/src/content/public/common/user_agent.h?q=frozen_user_agent_strings&dr=CSs&l=17

10
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
5