How to Block Facebook  Website on your Computer:

Hi friends today I will tell you how to block Facebook on your computer.

This trick helps you to prevent employees from using Facebook in office and student in schools,colleges and universities.

How it works?

Web browsers will check the DNS entry in Host file on your computer before opening any website, if DNS entry is not found for specific website, then it goes to Internet service provider to get IP address of website, if you enter Facebook entry in your host file with wrong IP address then while loading Facebook website web browsers try to load Facebook with wrong the IP address.

Follow the below steps to block Facebook in your computer.

Step 1: Open your hosts file with notepad (Go to run and type notepad C:\Windows\System32\drivers\etc\hosts and hit enter.

BlockfbStep 2: Add the following code below # 127.0.0.1 localhost

0.0.0.0 www.facebook.com

0.0.0.0 login.facebook.com

0.0.0.0 apps.facebook.com

0.0.0.0 blog.facebook.com

0.0.0.0 en-gb.facebook.com

>>>Click Here to Know How to Edit Host File

Blockfb1Note:  In above code you can replace 0.0.0.0 with any wrong IP address.

Ex : Here I am replacing 0.0.0.0 with 127.0.0.1

127.0.0.1www.facebook.com

127.0.0.1login.facebook.com

127.0.0.1apps.facebook.com

127.0.0.1blog.facebook.com

127.0.0.1en-gb.facebook.com

Step 3: Save your host file and test it.

Open any web browser and try to open Facebook it won’t open.

That’s it.

Enjoy 🙂

Thank you for visiting how2doit.in.  If you find any mistakes help us by leaving a comment.

Don’t Miss : How to create a Shortcut to Quickly edit your Hosts file.