How to Block Facebook on Your Browser

May 31, 2016 03:32 AM
Jun 2, 2016 03:07 AM
636001952087330347.jpg

hello friends,

I am new to null byte and this is my first post so please give me tips in the comment section.

there is probably no reason to block facebook but if want to focus on somethimg important like studies,work and dont want facebook to distract you or you can do it for fun as a prank.

Step 1: Run Notepad as Administrator

1.Click on start button>all programs>accessories

2.right click on notepad and run it as administrator.

636002345973995810.jpg

Step 2: Opening the Host File

  1. Click on file>open, then you have to locate the following adress

C:\WINDOWS\system32\drivers\etc

636002355810558163.jpg

Step 3: Editing the Host File

  1. in the host file search for the following code :-

# 127.0.0.1 localhost

then just below that paste the folloowing code:-

# Blocking Facebook

127.0.0.1 login.facebook.com

127.0.0.1 www.facebook.com

127.0.0.1 apps.facebook.com

127.0.0.1 blog.facebook.com

636002360063527926.jpg
636002363420872027.jpg
636002360063527926.jpg
636002363420872027.jpg

then save the file and you are done.

now you cannot access facebook in any website.

Step 4: Blocking Anyother Website Eg:- Google

  1. just paste the following code below # 127.0.0.1 localhost

# block google

127.0.0.1 www.google.com

Comments

No Comments Exist

Be the first, drop a comment!