FAQ: How can I make it harder to remove the extension from Firefox?

In general, a Firefox extension cannot prevent the user from uninstalling it, so LeechBlock cannot offer this as an option within the extension itself.

However, it is possible to “lock” an extension by setting a Firefox policy so that the extension cannot be removed or disabled. (You should create a backup of your LeechBlock settings before you attempt this solution: Options > General > Export.)

On Windows, the policy can be set via the Registry Editor:

  • Navigate to the following registry key:
    • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox
  • Add a new key under the Firefox key (if it doesn’t already exist):
    • Extensions
  • Add a new key under the Extensions key (if it doesn’t already exist):
    • Locked
  • Add a new value to that key:
    • Name: 1 (or some higher number if 1 is already used)
    • Type: String (REG_SZ)
    • Data: leechblockng@proginosko.com

Warning: Do not attempt to edit the registry unless you really know what you’re doing! You should back up your registry before making any changes. The developer of LeechBlock will not be held responsible for any damage you do to your system by editing the registry.

For further information on setting Firefox policies on Windows, Mac, and Linux systems, see here.