“about:config”值在Firefox中是否可以从网站中读取?

huangapple go评论57阅读模式
英文:

Are "about:config" values in firefox readable from websites

问题

about:config 部分的首选项可以从网站中读取吗?

如果可以 - 是否有方法来隐藏我们所做的更改?

例如,我在 about:config 中为 general.useragent.override 添加了一个值,但一个网站似乎识别到了这个手动更改的值并阻止了这个流量。

英文:

Are preferences in the about:config section readable from websites?

If so - is there a way to hide the changes that we made?

For example i added a value for general.useragent.override in the about:config and a website seems to recognize this manual change of the value and blocks this traffic.

答案1

得分: 2

这些网站无法直接读取设置,但它们可以查看其结果。您可以使用开发者工具的网络标签查看发送到网站的信息。如果您查看标题,您可以看到您的(更改后的)用户代理。

您很可能被阻止是因为该网站拒绝了您的用户代理,而不是因为您在Firefox上更改了它。您可以创建一个Python脚本,通知该网站您的用户代理是Mozilla/5.0,该网站将接受它。

英文:

The sites can't directly read the settings, but they can see their results. You can see what information gets sent to the websites using the Network tab of the developer tools. If you take a look at the headers, you can see your (changed) user agent.

You are most likely blocked because the site rejects your user agent, not because you changed it on Firefox. You could make a Python script that informs the site that your user agent is Mozilla/5.0 and the site would accept it.

huangapple
  • 本文由 发表于 2023年5月28日 03:58:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/76348795.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定