Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone have a solution (that doesn't involve editing the hosts file) to block a particular URL from FireFox?

Basic back story is that I'm trying to discipline myself. I'm spending FAR too much time over at Server Fault that I want to genuinely block the site from my work PC so that every time I find myself flicking to it during work time I can't see it, but I'd like to be able to disable it during my lunch break. (So I only spend 40 minutes a day there, rather than 4 hours).

That said I don't want to block it at the router, nor for anyone else.

share|improve this question
up vote 9 down vote accepted

The way I would do it is to install greasemonkey (if you don't already have it)

Then you could write your own script (right click the icon, add new user script). When it asks you where to apply it to, enter "http://**"

The script contains:

window.location.href = "about:blank";

During your lunch-break you simply de-activate that script from greasemonkey

share|improve this answer
Greasemonkey... I haven't seen this one before. I'll take a look. – Mark Henderson Aug 31 '09 at 22:23
Well, I got it working, but I've no idea what it wants by "namespace" so I entered junk, and it seems to work ;) – Mark Henderson Aug 31 '09 at 22:27
how would you do so for Google Chrome? – think123 Aug 8 '15 at 1:33
@think123 Greasemonkey equivalent for Google Chrome is Tampermonkey :) – Deepak Kamat Apr 24 at 17:24

2 firefox extensions - leechblock and blocksite

share|improve this answer

Use AdBlock Plus to block URLs from the browser

share|improve this answer

Block it using Parental Controls! :)!

share|improve this answer
He said at browser level, not system level. – Henri Watson Aug 31 '09 at 22:51

Use uBlock Origin browser extension for rich domain blocking level capabilities.

share|improve this answer

protected by DavidPostill Apr 24 at 17:48

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.