How to Block Websites in Browsers?
Now we have to understand, how we can block websites in browser. So there are different ways for that. Here we will discuss some very famous ways to block websites
Method 1: Block website by editing hosts file
Before blocking any website we should know its web address and then we will follow these steps
Step 1: Run a notepad file as administrator by right clicking on it.
Step 2: Now go to Open a file on Notepad
Step 3: Go to Local disk C , Scroll down and find “Windows” and then go to “Windows“.
Step 4: Scroll down and find “System32” and then go to “System32“
Step 5: Scroll down and find “drivers” and then go to “drivers“
Step 6: Now go to “etc” folder
Step 7: Now select “All Files” in place of “Text Documents“
Step 8: Open “hosts” file
Step 9: Now write IP by increasing the last octet of localhost IP by 1 with the website’s address that we want to block. Suppose localhost’s IP is 127.0.0.1 and we want to block facebook.com
So simply we will write 127.0.0.2 www.facebook.com
If we want to block another website then write IP by increasing previously wrote IP’s last octet by 1. Means for next website we will write 127.0.0.3
Now facebook.com will be blocked. If we want to unblock facebook.com we can simply remove the added line in hosts file.
Method 2: Block website by using Browser Extension
We are using Chrome as a browser. So we will block websites on chrome by using chrome extension.
Step 1: Open your Chrome Browser and Go to Chrome Web Store
Step 2: Search for “Block Sites“
Step 3: Pick any extension and click on “Add to Chrome“
Step 4: Now add the domain name of the website that you want to block
Now, After adding the URL of the websites you can directly block them in your Chrome Browser and you can follow the steps to block the website in other browsers you are using such as Firefox and Brave Browser.
How to Block Websites in Browsers?
Browsers are the famous tool that helps people to surf the internet. When we want to visit any website we simply go to our browser and search for that website then the browser takes us to the IP Address of that website and we become able to access that website. But if we can access all websites at every time then it can affect our productivity.
For example, if there is a student who mostly plays Online Games and his board exams are near. So in that case, if he can access the online game website then his preparation will be hampered.
Therefore, there are many scenarios in which we don’t want some specific websites to open in the browser. So for that, we block some specific websites. Before understanding how we can block any website, let us see some of the benefits of blocking any website.