英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论