How to Block a Website on Firefox

You can want to block a website on Firefox for many reasons, especially if you find it offensive, or want to protect your children. Since Firefox does not have a built-in function to block sites, you have to use special software, install an extension for Firefox or change the Hosts file on your computer. Keep reading this article to find the answer and to learn how to block a website on Firefox in different ways.

How to Block a Site on Firefox with Software

Another way is to use special software, professional applications, that are designed for reliable and excellent blocking. They have a high level of protection and allow you to block sites regardless of the type of your browser and users rights on the computer. Here are two programs for home use and for business that help you to block any website or group of websites and have many other useful features.

  1. Download and install the software.
    Download HT Work Focus
    Download HT Parental Controls
  2. Click Website Blocking.

block website in firefox

  1. Click the Add button near the Banned Websites box.
  2. Enter the website address you want to block or the keyword, for example, youtube. Read how to block YouTube

The software allows you block website categories, so you don't need to search and enter thousands of keywords and addresses, for example, to block porn on your computer. The software also lets you block websites by schedule or limit the time a user can spend on it.

Read How to Block Websites Temporarily

HT Work Focus and Parental Controls have many features that you can find useful. With our software, you can:

Block websites in Firefox

Block websites in all popular browsers by keywords or URLs.

Block categories of websites

Block social networking sites, chats, porn, etc.

Block all websites except those specified

Allow only the websites from your whitelist.

Block applications

Block instant messengers, games, any installed program.

Monitor computer activities

Track visited websites, launched applications, etc.

Remote control

Get remote access to the filters and logs.

How to Block a Website on Firefox Using the Hosts File

The Host file is a system file that is on each computer with Windows, and that is used to convert domain names to their IP-addresses, and vice versa. Each browser checks the file after each address input. You can easily block access to a website by adding it to the Hosts file.

The location of the hosts file depends on your operating system. In Windows 8, Windows 7, Vista and Windows XP it is located in C:\WINDOWS\system32\drivers\etc\hosts

  1. Open the Hosts file in a text editor.
  2. Find the line localhost.
  3. To block a website in Firefox, add such text with its address under the localhost line.
    For example, to block YouTube, add:
  4. Save and close the file.
  5. Restart your computer.
  6. Try to open the banned website in Firefox.

the host file

Note! Make a backup of the hosts file and put it somewhere safe, in case you make a mistake.

Unfortunately, despite the simplicity of this free method, it has disadvantages, cause it can be easily bypassed or work improperly and do not block websites.

How to Block a Website with Firefox Add-ons

Firefox add-ons are extensions that can be added to Firefox and carry out special functions. You can find them on Firefox website. Here we describe how to block a website with the most popular for this add-on BlockSite.

  1. Open Firefox and go to
  2. Click Add to Firefox and install the extension.
  3. Go to add-ons settings Tools > Add-ons.
  4. Click Options under the BlockSite add-on.

firefox add-ons

  1. Click the Add button end enter addresses of the sites you want to block.
  2. Save changes.

blocksite addon

At first glance, this is the perfect solution, but any add-on can be disabled or even uninstalled in a few clicks by any user who can find dozens of methods how to do it on the Web. The add-on can block only specified URLs and does not allows viewing computer usage statistics.

We have shown different ways to block a website in Firefox. Choose the one more suitable for you.