Block Site extension: block websites with a password in Chrome, Firefox and Edge

Ashwin Karthik
Updated •
Firefox, Google Chrome

Block Site is a free, open source browser extension by developer Ray that blocks websites you choose and locks its settings behind a master password. It is available for Chrome, Firefox, Edge and Opera. You add a hostname such as *.facebook.com on the options page, or click the toolbar button on a site, and anyone who opens that site sees a block page until the password is entered.

This guide covers installing Block Site, setting the master password, writing blocking rules (wildcards, regular expressions, redirects), schedules and allowlist mode, and how Block Site differs from the similarly named BlockSite extension.

Block Site extension block page in Firefox showing a blocked website

What is the Block Site extension?

Block Site is a customizable, password-protected website blocker and redirector that checks every top-level page request against your list and stops matching requests before they are sent. Because the request never leaves the browser, the blocked site does not receive data from that visit.

The extension is released under the Mozilla Public License 2.0, and the source code is on GitHub. The current version on both the Chrome Web Store and Firefox Add-ons is 0.6.2, last updated on September 3, 2026. The Chrome listing shows about 90,000 users, the Firefox listing about 75,600 users. The Chrome Web Store listing states that the developer does not collect or use user data.

Official downloads:

How to block a website with Block Site

To block a website with Block Site, add its hostname to the block list and save. Set the master password first, so nobody else can change the list.

  1. Install Block Site from your browser's official store.
  2. Open the extension's options page and set a master password. From now on, changing options or removing rules requires it.
  3. Type the hostname into the "Block a new hostname" field, for example *.facebook.com, and click "add". Using the * prefix covers the main domain and all its subdomains.
  4. Optional: enter a full destination URL (including https://) next to the rule to redirect the site instead of showing the block page.
  5. Click "Save". Rules do not apply until you save.

The faster way: open the site you want to block and click the Block Site toolbar button. Since version 0.6.0, the popup also lists the active rules and lets you unblock the current page or remove a rule without opening the options page.

To block many sites at once, import a plain text file with one hostname per line. Lines starting with # are treated as comments, and a destination URL on the line after a hostname turns that rule into a redirect. Click "Save" after the import.

Block Site options page with the Block a new hostname field and rule list

Block Site rule syntax: wildcards, regex and redirects

Block Site supports plain hostnames, wildcard patterns and regular expressions, which decide how much of a site a rule covers. The table summarizes the rule types documented on the developer's Block Site page.

Rule type Example What it blocks
Hostname facebook.com That hostname only
Wildcard subdomain *.facebook.com The domain and every subdomain
Path pattern /foo Any site whose path starts with /foo
Regular expression R: followed by the pattern Any URL the expression matches
Close keyword close as the destination Closes matching tabs, useful against pop-ups

Two limits are worth knowing. In a wildcard host pattern, the * must be the first character, so foo.*.bar is invalid. And wildcard rules cannot redirect: the developer disabled redirection for wildcards for performance reasons, so use several plain hostname rules if you need a redirect.

Unblocking, pausing and scheduling blocks

Block Site lets the password holder unblock a site temporarily, pause blocking, or limit blocking to set days and hours.

  • Temporary unblock: enter the master password on the block page. Access lasts a short period by default; since version 0.6.0 you can choose a custom time, "For this browser session" or "While tabs of this site are open". The context menu item "Remove All Temporarily Unblocked Rules" ends access early.
  • Pause: right-click the toolbar button to pause or resume blocking. With a password set, you need to unlock first.
  • Schedule: the "Schedule Blocking" section sets the days and time windows when rules are active. Per-site schedules work through regular expression rules, and a time zone offset in minutes fixes schedules if the browser reports a different time zone.
  • Custom block page: set a general message, a per-rule note with "Toggle Note", a light or dark theme, or your own styling in the "Custom CSS" box.

Block Site master password prompt and settings for unblocking a site

Allowlist mode and preventing removal

Reverse mode turns Block Site into an allowlist: only the hostnames on your list load, and every other site is blocked. This suits a shared kiosk browser or a work profile that should open a handful of sites.

Anyone with access to the browser can still disable or remove an extension, so a password alone does not stop a determined user. On Firefox, the developer documents a policies.json file in a "distribution" folder inside the Firefox installation directory that locks the extension so it cannot be disabled or removed. For Chrome and Edge, the same goal requires the browsers' own extension policies. For multiple machines, Block Site supports managed storage, so an administrator can push one configuration to every installation. Also back up your settings with the JSON export on the options page, and store the file safely because it carries your password protection settings along with the rules.

If the block must also hold in private windows, allow the extension there: "Allow in Incognito" in Chrome's extension details, "Run in Private Windows" in Firefox's add-on settings.

Block Site vs BlockSite: which extension is which?

Block Site (two words, by Ray) and BlockSite (one word, by BlockSite LP) are different extensions with different business models. The confusion is common because both block websites in Chrome.

Attribute Block Site (Ray) BlockSite (BlockSite LP)
Code Open source, MPL 2.0 Proprietary
Chrome users About 90,000 About 1,000,000
Focus Rules, regex, redirects, password lock Focus mode, usage limits, insights, mobile app sync
Paid tier None Premium offered on blocksite.co
Data Developer states no data collection Chrome listing declares web history handling

Pick Block Site if you want a free, auditable blocker with precise rules. Pick BlockSite if you want productivity features such as daily time limits and blocking on your phone, and review its privacy policy first.

When an extension is not enough

A browser extension only blocks sites in the browser and profile where it is installed. For stronger, device-wide or managed blocking, use one of these instead:

  • Chrome policies: the "Block access to a list of URLs" (URLBlocklist) policy and its URLAllowlist exceptions block up to 1,000 URLs on managed Chrome browsers, per Google's admin help. This is also why Chrome may then say your browser is managed by your organization.
  • Firefox policies: the WebsiteFilter policy in Mozilla's enterprise policy templates blocks websites for every user of that installation.
  • Filtering DNS: a service such as AdGuard DNS or ControlD blocks domains for every app on a device or network. Note that a browser's own secure DNS setting can route around network-level filtering.

For parental controls, a curated filter (DNS or the operating system's family features) is the better fit, because Block Site only blocks the sites you list yourself.

FAQ

Is Block Site free?

Yes. Block Site by Ray is free and open source, with no paid tier, and is listed on the Chrome Web Store, Firefox Add-ons, Edge Add-ons and Opera Add-ons.

What happens if I forget the Block Site master password?

The password is required to change options and to unblock sites, so without it you cannot change settings or unblock sites. Keep a JSON export of your settings as a backup, and write the password down somewhere safe.

Does Block Site block websites on my phone?

Block Site only works inside browsers that can run its extension, and it does not block apps. To block sites across a whole phone, use the device's own controls or a filtering DNS service.

Can Block Site block a site but allow one page on it?

Yes. The developer's FAQ explains how to block a site while allowing a specific page on it with a regular expression rule; see the Block Site FAQ for the exact pattern.

Related: best Firefox add-ons, block notifications in every major browser, best Chrome ad blocker extensions

Comments

  1. pioruns said on
    Reply

    Perfect, ghacks deliver again!

    I will install and test it out. Not for kids, but for myself. Since I have encrypted DNS is Firefox, it bypasses long lists of blocked pages in my HOSTS file. This will now became my HOSTS for Firefox:)

    Why do I use HOSTS? There is a number of pages which are crawling with fake news, poor content or intrusive ads or other crap. I just ban them forever in my HOSTS so no friend or Facebook link will make me open that page ever again.

  2. C Sharp fan said on
    Reply

    Thanks Ashwin.

    Good article, as i thought you were Martin, ha.

  3. C Sharp fan said on
    Reply

    Martin, you can replace that “restricted access” page with another URL or make you own page.
    For example, you can make a local HTML file and put that location in Block Site.

    Hint:

    file:///C:/blank%20black.HTML

    I’ve been using Block Site for years, as an ad blocker for specific pop-up pages, as some sites don’t work with regular ad blockers.

  4. Yuliya said on
    Reply

    When I’ll have children, if they won’t be able to work around a browser extension, I’d ask myself where exactly have I failed in raising them properly. Or start questioning today’s education system.

    1. No more extensions said on
      Reply

      Maybe in the future they can’t develop browser extensions because Mozilla will make it impossible.

  5. Anonymous said on
    Reply

    “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).”

    What’s the point of this extension, disabling it should be enough to bypass the block so mostly useless as parental control, and use ublock origin instead to block nefarious activity.

Leave a Reply

By commenting, you accept our privacy policy and keep the discussion respectful and on topic.