Custom Search

Block Web site using Host file

Sample Steps to Block Facebook

1. Go to Start > Run or press Windows + R

2. Copy these string into Run fields.

Please copy the string based on your Operating System. You can refer below:
Windows XP, Vista and Windows 7

C:\WINDOWS\system32\drivers\etc\hosts
Windows 2000
C:\WINNT\system32\drivers\etc\hosts

Windows 98/ME
C:\WINDOWS\hosts


3. Click Enter and then open the hosts file using your preferred text editor. I used Notepad.

4. Copy and Paste the following into the Hosts file after 127.0.0.1 localhost and you can add other web site that you want to block.
# Block Facebook
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 static.ak.fbcdn.net
127.0.0.1 www.static.ak.fbcdn.net
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
127.0.0.1 fbcdn.net
127.0.0.1 www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 www.fbcdn.com
127.0.0.1 static.ak.connect.facebook.com
127.0.0.1 www.static.ak.connect.facebook.com
How To Block Facebook Using Hosts File - Step 4
5. Save your Hosts file and your are done! You can try to open Facebook and if there is still no effect, restart your workstation and retry again.

0 comments:

You might also like: