Block All Websites Except One in Chrome and Firefox
In this article
To block all websites except one in Chrome and Firefox, you must use a third-party browser extension like BlockSite or Cold Turkey, as neither browser has a built-in "whitelist-only" mode. By installing a site-blocking extension, you can set a global block on all URLs and then add a single specific domain to an "Allow List" or "Whitelist," effectively locking the browser down to one site.
What You'll Need
- A computer running Windows, macOS, or Linux.
- The Google Chrome browser installed.
- The Mozilla Firefox browser installed.
- An internet connection to download the necessary extensions.
- Administrator privileges on the computer if you intend to password-protect the settings.
Step-by-Step
Because Chrome and Firefox handle extensions differently, follow the specific paths for each. Note that menu labels may differ slightly depending on your browser version, device, or region.
Configuring Google Chrome
- Open the Chrome browser and navigate to the Chrome Web Store.
- Search for a reputable blocking extension such as "BlockSite" or a similar productivity tool.
- Click Add to Chrome and then confirm by clicking Add extension in the pop-up dialogue.
- Click the Extensions icon (the puzzle piece) in the top right corner of the browser toolbar and select the blocking extension to open its dashboard.
- Locate the settings or configuration menu within the extension. Look for a section labeled Block List or Restriction Mode.
- Enable the Whitelist Mode (sometimes called "Allow List Mode"). This is the critical step; it tells the browser to block everything by default rather than blocking only specific sites.
- In the "Allow List" or "Whitelist" text field, type the full URL of the one website you want to keep accessible (e.g.,
wikipedia.org). - Click Add or Save.
- Test the setup by attempting to visit a different website; you should see a block page. Then, visit your allowed site to ensure it loads correctly.
Configuring Mozilla Firefox
- Open the Firefox browser and click the Menu button (three horizontal lines) in the top right corner.
- Select Add-ons and themes from the dropdown menu.
- In the search bar at the top of the page, type the name of a blocking extension (such as "BlockSite") and press Enter.
- Click on the extension from the results and select Add to Firefox, then confirm the installation in the permission prompt.
- Click the Extensions icon in the toolbar to open the tool's options.
- Navigate to the settings panel and look for the Blocking Mode toggle. Switch this from "Blacklist" (blocking specific sites) to "Whitelist" (blocking all except specific sites).
- Enter the domain of the single website you wish to permit in the Allow List section.
- Save your changes.
- Verify the configuration by trying to access a blocked site and then accessing your permitted site.
Common Mistakes
One of the most frequent errors is forgetting to switch the extension from "Blacklist" to "Whitelist" mode. Most blocking tools are designed to let you browse the web freely while blocking a few distracting sites. If you simply add your one desired site to a standard block list, you will have blocked that site and kept everything else open, which is the opposite of your goal.
Another common mistake is entering the URL incorrectly. Some extensions require the full protocol (https://), while others only want the domain (example.com). If your allowed site is still being blocked, check the required format in the extension's help documentation. Additionally, users often forget that many modern websites load content from other domains (CDNs, image hosts, or API services). If your allowed website looks broken or missing images, you may need to add the specific domains that provide those assets to your allow list as well.
Finally, users often overlook the "Incognito" or "Private Browsing" mode. By default, Chrome and Firefox disable extensions in private windows. If you can simply open a private window to bypass your block, you must manually grant the extension permission to run in private mode via the browser's extension management settings.
Tips
To prevent yourself or others from simply disabling the extension, look for a "Password Protection" feature within the tool. This requires a password to access the settings menu, making the restriction much harder to bypass. If the extension does not offer this, you can use system-level software like Cold Turkey Blocker, which integrates with the OS to prevent the uninstallation of the blocking tool during a scheduled session.
If you find that the website you allowed is blocking certain sub-pages, use wildcards if the extension supports them. For example, using *.example.com instead of just example.com ensures that all subdomains (like mail.example.com or blog.example.com) remain accessible.
For those using this for productivity, consider setting a schedule. Many advanced blocking extensions allow you to enable the whitelist-only mode during work hours (e.g., 9 AM to 5 PM) and automatically revert to normal browsing in the evening, removing the need to manually toggle the settings every day.
Troubleshooting
If the block is not working and you can still access all websites, first check if you are in a Private or Incognito window. Go to Settings > Extensions, find your blocking tool, and toggle the switch for "Allow in Incognito" or "Run in Private Windows." Restart the browser after making this change.
If your allowed website is being blocked despite being on the list, check for a conflict with other extensions. Ad-blockers or security suites can sometimes interfere with how site-blocking extensions intercept web requests. Try disabling other extensions one by one to identify the conflict.
If the browser becomes completely unresponsive or you are locked out of every site including the extension's own settings page, you can boot your computer into Safe Mode with Networking. This usually disables browser extensions, allowing you to open Chrome or Firefox and remove the faulty extension or adjust the whitelist settings.
If the extension is simply not loading, ensure your browser is updated to the latest version. Outdated browser versions often have compatibility issues with newer extension APIs, which can cause the blocking logic to fail silently.
Frequently Asked Questions
Can I do this without installing any software?
Not easily. While you can edit the Windows Hosts file to block specific sites, the Hosts file does not support a "block all except one" logic. You would have to manually list every single website on the internet to block them, which is impossible. A browser extension is the only practical method.
Will this block apps on my computer too?
No. Browser extensions only control traffic within that specific browser. If you have the Spotify app, Discord, or another browser installed, those will still have full internet access. To block everything on the system, you would need a system-wide firewall or dedicated productivity software.
Does this work across multiple devices?
Only if the extension supports cloud syncing. Some tools allow you to create an account and sync your whitelist across different computers where the same extension is installed and logged into the same account.
Can I allow a specific folder or section of a website?
This depends on the extension. Basic tools only allow full domains. Advanced tools allow you to specify paths (e.g., example.com/work/) while blocking the rest of the site, but this is a premium feature in many apps.
Is it possible to block all sites except one using DNS?
Yes, but it requires a professional DNS filtering service (like NextDNS or OpenDNS) and the ability to configure your router or network adapter. You would set a "Deny All" policy and then create a specific "Allow" rule for your target domain.