All posts by James

FAQ: Will LeechBlock be compatible with Firefox 57+?

Starting with Firefox 57, which will be released in November 2017, only extensions built with the WebExtensions framework will be work in Firefox (see here for details). After investigating what it would take to modify the existing LeechBlock extension to use only WebExtensions, I concluded it would be easier and better to rewrite the extension from the bottom up, reusing existing code wherever possible.

The new extension is called LeechBlock NG (Next Generation). Go here to install the latest version.

Note that this software is under development. It may contain some bugs and it does not (yet) include all the features of the legacy extension. You should disable or remove the legacy extension before installing the new one.

If you want to transfer your settings to the new version, export them to a text file before you uninstall the legacy version (Options > General > Export Options). You can then import them into the new version once you’ve installed it.

The source code for LeechBlock NG is available on GitHub. Please post bug reports there!

FAQ: Can I put comments in the site list?

Not exactly. However, if you put the # character before any entry in the list of sites it will be ignored. This can be useful for temporarily deactivating entries in the list. (Note that any entries starting with # will be moved to the top of the list, because LeechBlock stores the list in alphanumerical order.)

FAQ: How can I stop myself from circumventing LeechBlock by changing the system clock?

There are several ways of doing this on Windows. (If anyone knows of any solutions for Linux or MacOS, please pass them on to me!)

On Windows, if you’re not a member of the Administrators or Power Users groups then (by default) you shouldn’t be able to change the system clock anyway. If you are able to change the clock, you could try one of these solutions:

Solution #1: Hide the clock from the Taskbar

Right-click on the Taskbar, select Properties, and uncheck the option Show the clock. Easy to undo, of course, but adds an extra layer of inconvenience.

Solution #2: Change the permissions using the Group Policy Editor

  • Select Run… from the Start Menu (or press Windows+R) and enter gpedit.msc as the program to open.
  • Navigate to Computer Configuration / Windows Settings / Security Settings / Local Policies / User Rights Assignment.
  • Edit the policy for Change the system time and remove the Administrators and Power Users groups from the list (i.e., empty the list).
  • Log off and log on again for the new permissions to take effect.

You can restore the original permissions by re-editing the policy and adding the Administrators and Power Users groups back to the list.

Note that the Group Policy Editor is not included in the Home Edition of Windows XP, Vista, and 7, in which case you could try…

Solution #3: Use an elevated command prompt

Go here for detailed instructions (scroll down to “Option Two”).

Solution #4: Use third-party software Clock Guard

I’ve never used Clock Guard and I can’t vouch for it, but it may do the job for you.

FAQ: I’m trying to block sites overnight, but the block isn’t working. What am I doing wrong?

LeechBlock won’t recognize a time period like 2100-0600 because it expects the time period to be within one calendar day. Bear in mind that there is no obviously correct interpretation of a time period like 2100-0600 when only some days of the are selected for blocking sites.

However, you can probably get the result you want by splitting up the time period like this: 0000-0600,2100-2400