How to Block Websites from Opening in Windows
A website is a collection of related network web resources such as web pages and multimedia content, which are typically identified with a common domain name and published on at least one web server. Sometimes, you might need to block certain websites; for example, to configure the computer for office use or restrict some websites for your home use. Therefore, in this article, we will teach you how to block websites on Windows 10.
How to Block Websites from Opening on Windows 10?
When it comes to blocking sites on Windows 10, there are numerous ways of doing that. Mostly, you can search them through browsers, so you can block them on the browser that is being used. Also, our systems have a hosts file that you can use to block any site you want by editing it and adding the web address. We will discuss all the possible methods on how to block sites in different browsers or by using your system hosts file.
Method 1: Block Websites through Hosts File
In this method, we will be editing the hosts file in our system directory and adding the website’s address to the file to block them. Make sure you have permission to access the hosts file and always open it as an administrator on the notepad for editing.
- Open your “Notepad” as an administrator. Press Windows + S, type “notepad” in the dialog box, right-click on the application, and select Run as administrator.
- Click “File” and then “Open”.
- Go to the following address:
C:\Windows\System32\Drivers\etc\hosts
- Locate the “hosts” file and open it.
- Scroll down to the bottom and click on the line after the last item.
Note: You can create space between the last line and the one you are typing, just to be safe. - Type your localhost IP and URL/Address for websites:
127.0.0.1 www.facebook.com
Note: Use the tab for the space between the IP and the address. The IP will remain the same for every web address you add because it is your localhost IP, but only the website URL will change each time.
- Click File, then Save.
- Now try; the website will be blocked.
Note: You may need to restart your PC for it to work.
Method 2: Block Websites in Firefox
Firefox has some add-ons that allow you to block websites by adding their URL. You can get these add-ons for free, and they have a lot of features, like a password for unblocking the sites, work mode, and block by words. To add the add-ons, follow the steps below:
- Open Mozilla Firefox.
- Click on the “Settings Bar” on the top right corner.
- Select Add-ons (Shortcut – Ctrl + Shift + A).
- Search for “Block Site” in the search box.
- Open the one that has more users and click “Add to Firefox”.
- Add any web address in it, and that will block it for Firefox.
- You can also add a Password to your settings by selecting it on the left-side panel. This will protect the blocked sites, so no one can unblock them back.
Method 3: Block Websites in Chrome
Please click here to view the method on how to block a website in Chrome.
Method 4: Block Websites in Edge
Microsoft Edge or Internet Explorer has an option for blocking sites, and it’s available in the Internet properties. You can restrict sites through this feature available in the security tab of properties and add a site manually by its URL.
- Open Run by pressing (Windows + R) buttons on a keyboard.
- Type “inetcpl.cpl” in the text box, and press Enter.
- A window will pop up for Internet Properties. Select the Security tab in the properties.
- Select the “Restricted Sites” zone and click on “Sites”.
- Add any website that you want to block, press Add, and then close and save it.