Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to whitelist trusted sites for Java plugin?

  • 7 svar
  • 4 har dette problemet
  • 2 views
  • Siste svar av Keslaa

more options

I am deploying Firefox 30 to about 2500 machines. We have an internal site that requires the Java plugin and is extensively used throughout the organization. How can I (through Preferences or some other device) set the Java plugin to Always Activate for this one internal website?

I am deploying Firefox 30 to about 2500 machines. We have an internal site that requires the Java plugin and is extensively used throughout the organization. How can I (through Preferences or some other device) set the Java plugin to Always Activate for this one internal website?

Valgt løsning

I didn't have time to figure out anything so granular. I ended up just setting the Java plugin to Always Activate by adding pref("plugin.state.java", 2); to our existing mozilla.cfg file

Les dette svaret i sammenhengen 👍 1

All Replies (7)

more options

I think these references will get you started, however I have not done this before:

http://kb.mozillazine.org/Locking_preferences

  You will need a mozilla.cfg and local-settings.js configured, I can copy them to all of the computers with a script, instead of having to install the GPO AddOn. Here's what my local-settings.js looks like:

pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg");

- pref, lockPref & defaultPref have different meanings: http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files...

more options

It is not possible to white-list a plugin for a specific domain via preferences. Via preferences you can only define the default behavior and that is best left to "Ask to Activate". Normally you white-list (allow) a plugin for a specific domain in "Tools > Page Info > Permissions" and this is one of the settings that is stored in the permissions.sqlite file as part of the "Site Preferences". So you would have to inject such a record in this file to allow Java automatically for this domain.


Note that you likely also have to white-list this site in the Java plugin and that can only be done via the Java control Center AFAIK.

If you visit a website regularly then a possible workaround is to add the URL to the Java Exceptions Site List, see:

more options

Thank you for the information, cor-el. I already have the site added to the Exception Sites list. (We did the Java dance last month.) Is there some documentation on how best to deploy such a setting as you describe into the permissions.sqlite file on a global basis? Should I configure a workstation and then port the settings file out to be deployed as part of the Firefox installation? We are already copying local-settings.js, mms.cfg and firefox.cfg files.

more options

Thank you for the reply, guigs2. I had already looked at those links for locking other settings we were working on and they were extremely helpful in that regard.

more options

Is this for existing profiles or for new installation that haven't used Firefox before?

You can initialize a profile by creating a browser\defaults\profile folder in the Firefox program folder (C:\Program Files\Mozilla Firefox\) and place files in it to have them copied to a newly created profile.

more options

This is for both new and existing users

more options

Valgt løsning

I didn't have time to figure out anything so granular. I ended up just setting the Java plugin to Always Activate by adding pref("plugin.state.java", 2); to our existing mozilla.cfg file