Jump to content

(How to) Block websites with a master password using the Block Site extension for Firefox and Chrome


Karlston

Recommended Posts

Block websites with a master password using the Block Site extension for Firefox and Chrome

Do you share your computer with someone? Do you want to restrict access to some websites in Firefox and Chrome? Or do you want to limit your access to sites in those browsers to avoid spending too much time on these sites.

 

Block-site-extension-firefox-example.jpg

 

A simple way to this without installing blocking software or internet filters is to use an extension like Block Site.

 

The first thing you need to do after installation is head on to the options page to set a master password for the extension; this will prevent other users from modifying Block Site's settings (you can also block yourself by forgetting the password).

 

When someone tries to access a blocked site, they will see a Restricted Access banner that says the website is blocked. The message mentions since when the URL has been blocked. The only way to bypass this block is by entering the master password. Blocked websites can be redirected to other pages of your choice, but this is optional. You can even set a custom message that's displayed on the left side of the screen.

 

The "Resolve title of blocked tabs" option prevents the URL of the site from loading, so your browser won't send any data to the remote server.

Blocking domains

The "Block a new hostname" option is what you'll need to use. There is a URL box there where you can enter the domain name of the website that you wish to block. Enter the URL, like www.website.com and click on the add button.

 

Block-site-add-on-options.jpg

 

But it won't block the site when a HTTPS version or a sub-domain is accessed, so instead you should use *.website.com.

 

For e.g. .facebook.com won't block the website completely. Use *.facebook.com

 

Block Site supports hostname matching with wildcard rules: *://*keyword*/* and *://*/*keyword*. For e.g. *://*instagram*/* and *://*/*instagram*.

 

The former blocks domains which contain the word "instagram", while the latter also blocks queries which contain the word. So, even if you search for "instagram" that will be blocked with the second keyword syntax. RegEx is supported too, and the syntax is explained in the options page. Another way to block websites is by visiting the webpages and clicking on the extension's icon. Speaking of which, you can right-click on the Block Site toolbar icon to pause/resume blocking at any time.

 

Have a list of domains to block? Import a text file to the add-ons options page to add them quickly. Each line can contain one domain that you wish to block.

 

When you add a website to the block list, click on the Save button to apply the rules immediately. If the button is grayed out, enter the password (the box is at the top) and click on the Unlock button to the left of the Save button, and you'll be able to save the changes.

 

Block-websites-with-a-master-password-us

Unblocking a website

You can unblock websites from the options page or by visiting the domain directly and bypassing it with  the password.

 

The extension will close the blocked tab automatically but you can change this behavior from the settings. There is a scheduler that you can use to only block hostnames at a specified time or day and/or on specific days. The password check can be disabled when a wrong password has been entered many times in a minute (the time can be customized).

Import/Export settings

Use the import/export JSON options to backup your settings and the list of the URLs that you have blocked. This file also contains the master password (can't be exported/imported when the Options have not been unlocked).

You can prevent the extension from being disabled or removed by setting a policy. It's explained on the add-on's official website.

Closing Words

Block Site is primarily used to prevent other people from messing with your browser. It could also be used to boost your productivity by serving as a reminder like "I must not be Tweeting/updating Facebook/chatting while I'm supposed to be working/studying". Hey, I can delete the extension or bypass it since I know the master password. That is entirely up to you.

 

I wouldn't recommend using it for parental controls simply because it's not a net-filter. You have to enter all the domains you want manually or import a list. It can still be useful if you want to block known bad websites. Wildcards cannot be redirected to a different URL, however. The reverse mode only allows website that have been included in the list, which may be useful for home users, and maybe even at work for small businesses to prevent unauthorized usage of the browser.

 

Block Site is an open source extension. You can get it for Google Chrome from the Webstore.

 

Note: Block Site by Ray, should not be confused with BlockSite by Blocksite, which is a different add-on.

 

Personally, I would have preferred to change the "Restricted Access" page to use some custom text or an image. It may also be nice if there was an option to disable the page altogether, so the person who tried to access the blocked page doesn't know it has been blocked.

 

Landing page: https://addons.mozilla.org/en-US/firefox/addon/block-website/

 

Source: Block websites with a master password using the Block Site extension for Firefox and Chrome (gHacks)

Link to comment
Share on other sites


  • Views 885
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...