firefox fake userAgent

浏览器userAgent信息主要在NavigatorID里如果需要伪装的全面一点的话需要联合Navigator里的属性一起修改

 

Navigator属性主要有下面几个

appCodeName

一般是Mozilla不用修改
appName

一般是Netscape不用修改
appVersion

已废弃,虽然已废弃但建议还是加上(appVersion number (Platform; Security; OS-or-CPU; Localization; rv: revision-version-number) product/productSub Application-Name Application-Name-version)
platform

platform 可能是: “Win32”, “Linux i686”, “MacPPC”, “MacIntel”, 等.
product

一般是Gecko不用修改
userAgent

userAgent命名规则一般如下

userAgent = appCodeName/appVersion number (Platform; Security; OS-or-CPU; 
Localization; rv: revision-version-number) product/productSub 
Application-Name Application-Name-version

 

结论我们只需要修改Navigator中的appVersion,platform,userAgent就可以了

 

设置Firefox的userAgent可以在用户缓存目录中找到prefs.js里面添加
user_pref("general.platform.override", "Win32");

user_pref("general.appversion.override", "5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36");

user_pref("general.useragent.override", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36");

保存之后重新运行Firefox浏览器就可以了

prefs.js配置也可以在地址栏输入about:config,然后根据需要增加对应的内容详情查看how-reset-default-user-agent-firefox

 

Comments are closed.