How to Block Websites on Firefox

Although Firefox does not have a website blocking function, you can install an extension to detect and block websites with adult and restricted content. If you need a more comprehensive method, you can edit the hosts file to block the site on multiple browsers. If you need to block on multiple devices on the network, using a service like OpenDNS is the most effective way.

Using BlockSite

Picture 1 of How to Block Websites on Firefox

Start Firefox on the computer. You can install many extensions on Firefox to block websites. These utilities are only supported on the desktop version. This method will focus on the popular utility BlockSite, which allows you to block specified websites.

Firefox extensions can be bypassed quite simply and only take effect on Firefox. If you want to block all access to that website on all browsers in use, you should refer to another method in this article.

Picture 2 of How to Block Websites on Firefox

Click the Menu button (☰) and select "Add-ons". This is the operation that opens a new tab showing the installed plugin.

Picture 3 of How to Block Websites on Firefox

Click on the "Get Add-ons" tab on the left side of the screen. You will see several add-ons on Firefox.

Picture 4 of How to Block Websites on Firefox

Click on "See more add-ons" at the bottom of the page. This is the operation to open a new tab displaying the convenience store.

Picture 5 of How to Block Websites on Firefox

Find "BlockSite." The screen will display the BlockSite utility, which helps you block websites quickly.

There are many utilities that block and filter websites. If you are not satisfied with BlockSite, try searching "site block" and "parental control" to find another extension.

Picture 6 of How to Block Websites on Firefox

Click the "Add to Firefox" and "Install" buttons. This is the operation to install BlockSite into Firefox.

Picture 7 of How to Block Websites on Firefox

Start Firefox. You are required to restart Firefox after installing the extension.

Picture 8 of How to Block Websites on Firefox

Click on "I don't want to help" in the new tab. This option prevents your browsing data from being sent to BlockSite.

Picture 9 of How to Block Websites on Firefox

Open BlockSite settings. Go back to the Add-ons tab and click on "Extensions". From here, click on "Options" next to "Block site."

Picture 10 of How to Block Websites on Firefox

Set up a password. Check the "Enable authentication" dialog box to set up a password. Enter the password you want to use in the corresponding field. Anyone using Firefox is required to enter this password when they want to access BlockSite settings.

Picture 11 of How to Block Websites on Firefox

Choose between "Blacklist" and "Whitelist". When using a blacklist, any added websites are blocked. When using whitelist, on the contrary, the entire website is blocked except for the added website. Whitelists are more effective when you want to restrict your children to only view certain safe websites.

Picture 12 of How to Block Websites on Firefox

Add the site to the list. Click the "Add" button and type or paste the website address into the corresponding field. This is to add the website to the blacklist or whitelist, depending on your settings.

You can use wildcard to block multiple websites respectively. For example, to block any site that has the word "drugs" in the address, you would type *drugs*.

Edit the hosts file

Picture 13 of How to Block Websites on Firefox

Open the hosts file. Files allow you to reroute from specific web pages to internal addresses, and effectively block the web. This method affects all computer users. Editing the hosts file is only really effective when you need to block a few pages.

Windows - Navigate to C:/Windows/System32/drivers/etc and double click on the hosts file. If asked to choose a program to open the file, select "Notepad."

macOS - Open Terminal in the Utilities folder. Type sudo nano /etc/hosts and enter the password when prompted. This is to open the file in the editor.

Picture 14 of How to Block Websites on Firefox

Add a new line at the end of the file. Add the website you want to block in a new line at the end of the file.

Picture 15 of How to Block Websites on Firefox

Type 127.0.0.1 . For example, if you want to block Facebook, type 127.0.0.1 www.facebook.com.

Picture 16 of How to Block Websites on Firefox

Add more pages to the new line. You can continue to add new lines to the file, one page per line. Don't forget to add 127.0.0.1 to each line.

You should also block the mobile version of that site. For example, if you block Facebook, block m.facebook.com as well.

Picture 17 of How to Block Websites on Firefox

Save the file when finished. Once you've finished editing the file, you need to save your changes:

Windows - Press Ctrl+S or choose "Save" in the File menu.

macOS - press Ctrl+X and select "Yes" when asked to save the file. Use the old name to overwrite the original file.

Picture 18 of How to Block Websites on Firefox

Review. After changing the hosts file, you can test the website in any browser, the website will be redirected to a blank page. This method affects all users on the computer and also private browsers.

Using OpenDNS

Picture 19 of How to Block Websites on Firefox

Go to the OpenDNS website. OpenDNS is a DNS service that redirects websites containing adult or restricted content. This method allows you to block the website from all users on the same network no matter what browser or device they use. OpenDNS is a free service.

Go to opendns.com in your browser.

Picture 20 of How to Block Websites on Firefox

Select "Personal" on the OpenDNS website. You will see different personal use plans.

Picture 21 of How to Block Websites on Firefox

Select "OpenDNS Family Shield" (OpenDNS Family Shield). This is a pre-configured filter to block websites with adult or inappropriate content in the home network.

Picture 22 of How to Block Websites on Firefox

Select "Home routers". This is an option that lists the specific setup instructions of many popular routers.

Picture 23 of How to Block Websites on Firefox

Find the router you are using in the list. If you don't know your router, or can't find it in the list, select "FamilyShield Router Configuration Instructions".

Picture 24 of How to Block Websites on Firefox

Open the router configuration page. The process depends on the router and network setup. See the article Accessing the router for detailed instructions.

Normally, you enter the router's IP address into a web browser, log in with the username and password to access the configuration page.

Picture 25 of How to Block Websites on Firefox

Open the "Internet" or "WAN" section. This section contains the DNS settings for the router.

Picture 26 of How to Block Websites on Firefox

Disable automatic DNS. Many routers enable DNS automatically. You need to disable before manually entering the DNS server.

Picture 27 of How to Block Websites on Firefox

Enter the two DNS servers below. Enter the address below in the 2 corresponding DNS fields:

208.67.222.123

208.67.220.123

Picture 28 of How to Block Websites on Firefox

Click "Apply" or "Save Changes". This is to apply the new settings and restart the router. You may have to wait a minute for the network to start.

Picture 29 of How to Block Websites on Firefox

Review. The DNS server will automatically redirect access to the blocked site. Test import a website with adult content to make sure it works.

Update 25 February 2022
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile