Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-21-2007, 08:50 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
control Firefox proxy settings with a script

Is there a script out there, javascript perhaps, that could control the proxy being used by Firefox on the fly? I wanna change the proxy being used depending on the user or groups of users. There are firefox extensions that does this, basically the user just has to select which proxy to use. So maybe there must be a way to do it without any user intervention needed.

Thanks.. .

Last edited by xylex_blaiste; 02-21-2007 at 08:52 PM.
Old 02-21-2007, 09:52 PM   #2
Registered: Sep 2005
Location: US
Distribution: Gentoo AMD64 Testing
Posts: 129

Rep: Reputation: 16
In each home directory there is a folder that is named .mozilla/firefox/<some random letters>.default/ (the actual directory can be found after the Path= name in .mozilla/firefox/profiles.ini; note that there may be more then one profile) this folder is where all of the setting for the browser are stored. The proxy settings are in a file called prefs.js (along with a large number of other user preferences).

A few very easy ways to do this with a shell script:
1) Give each user their own home directory, and you don't need a script or anything
2) Copy the entire .mozilla directory for every user
3) Use sed or related program to update the prefs.js file
4) edit the profiles.ini file to set the profile you want them to use as the default one.

I am sure there are thousands of other ways also.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
beryl settings vs firefox settings davidleroux1 Linux - Desktop 2 02-20-2007 07:42 PM
Proxy settings location for Firefox, Opera, Konqueror browsers peter88 Linux - General 4 11-24-2006 12:30 AM
konqueror proxy settings megadsonic Linux - Networking 5 10-02-2005 11:25 PM
Fan Control and ACPI settings? Dobs01 Linux - Hardware 4 11-15-2004 09:42 AM
Firewall's proxy settings. silverstriip Linux - Networking 1 08-20-2003 03:32 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration