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
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.
Click the Menu button (☰) and select "Add-ons". This is the operation that opens a new tab showing the installed plugin.
Click on the "Get Add-ons" tab on the left side of the screen. You will see several add-ons 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.
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.
Click the "Add to Firefox" and "Install" buttons. This is the operation to install BlockSite into Firefox.
Start Firefox. You are required to restart Firefox after installing the extension.
Click on "I don't want to help" in the new tab. This option prevents your browsing data from being sent to BlockSite.
Open BlockSite settings. Go back to the Add-ons tab and click on "Extensions". From here, click on "Options" next to "Block site."
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.
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.
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
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.
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.
Type 127.0.0.1 . For example, if you want to block Facebook, type 127.0.0.1 www.facebook.com.
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.
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.
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
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.
Select "Personal" on the OpenDNS website. You will see different personal use plans.
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.
Select "Home routers". This is an option that lists the specific setup instructions of many popular routers.
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".
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.
Open the "Internet" or "WAN" section. This section contains the DNS settings for the router.
Disable automatic DNS. Many routers enable DNS automatically. You need to disable before manually entering the DNS server.
Enter the two DNS servers below. Enter the address below in the 2 corresponding DNS fields:
208.67.222.123
208.67.220.123
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.
Review. The DNS server will automatically redirect access to the blocked site. Test import a website with adult content to make sure it works.
You should read it
- What to do when Firefox crashes?
- FireFox 54 version improves performance, speed, and security enhancement
- Firefox 58 and new features help improve performance
- Mozilla Firefox - Free, fast and private web browser
- Firefox 57 Quantum is here, great Mozilla!
- Top best VPN for Firefox
- Is this the time to give Firefox another chance?
- How to use Firefox Color to customize the Firefox interface
- Firefox 56 released with a new screen capture, settings panel
- How to delete Firefox account
- 5 ways to fix when Firefox becomes sluggish
- Everything you need to know about the latest Firefox comes out next week