firefox代理设置通过命令行 [英] firefox proxy settings via command line
问题描述
如何通过Windows xp / 2k上的命令行更改Firefox代理设置?
How do I change Firefox Proxy settings via command line on windows xp/2k?
感谢
推荐答案
代理设置存储在用户的Firefox配置文件中的 prefs.js
文件中。
The proxy setting is stored in the user's prefs.js
file in their Firefox profile.
Firefox个人资料目录和文件的路径是:
The path to the Firefox profile directory and the file is:
%APPDATA%\Mozilla\Firefox\Profiles\7b9ja6xv.default\prefs.js
其中 7b9ja6xv
是一个随机字符串。但是,默认配置文件的目录始终以.default结尾。
where "7b9ja6xv
" is a random string. However, the directory of the default profile always ends in ".default". Most of the time there will be only one profile anyway.
将您之后设为 network.proxy.http
和 network.proxy.http_port
。
现在这取决于你能够/准备使用来更改文件。
Now it depends on what technology you are able/prepared to use to change the file.
PS:如果这是关于通过登录脚本或类似脚本更改一组用户的代理设置,我建议查看使用自动代理发现 WPAD )机制。您永远不必再次在用户计算机上更改代理配置。
P.S.: If this is about changing the proxy settings of a group of users via the logon script or similar, I recommend looking into the possibility of using the automatic proxy discovery (WPAD) mechanism. You would never have to change proxy configuration on a user machine again.
这篇关于firefox代理设置通过命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!