How To Block Facebook Using Hosts File
Facebook is the most visited social networking site in the world with more than 400 Millions of users. Based on some research, people log on to Facebook 4 times a day and spend at least 7 hours checking with friends news updates etc. Some fears Facebook will reduce human productivity and may lead to addictive behavior. If you are searching for the most simple ways to block Facebook, this post will absolutely helps you.
In this post, I will show you simple and quickest ways to block Facebook by using Hosts file. Enjoy!
Simple 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
# 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
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.
Attention!
Please make a backup of your hosts file in case of anything happened




How To Stop Yourself From Facebook-Stalking Your Ex on Fri, 3rd Sep 2010 10:39 am
[...] You can follow the excellent step-by-step instruction explained here. [...]
Just One Night Love » Blog Archive » How To Stop Yourself From Facebook-Stalking Your Ex on Thu, 18th Nov 2010 6:21 pm
[...] You can follow the excellent step-by-step instruction explained here. [...]
Jeff Schult on Mon, 20th Dec 2010 5:31 pm
OK — so to make this complete, what you really need is a “Like” button for Facebook on the bottom of the post.
L.o.l …
Cari on Tue, 21st Dec 2010 12:23 am
LOL.. definitely Jeff..
rajbir on Thu, 30th Dec 2010 1:46 pm
How To unBlock Facebook Using Hosts File. if using Trend Micro Worry-Free Business Security.
The World Is Obsessed With Facebook - Page 2 - Stormfront on Thu, 24th Feb 2011 8:59 pm
[...] The World Is Obsessed With Facebook How To Block Facebook Using Hosts File | Cariblogger.com Follow the instructions in that link & you'll never have Jewbook open on your machine [...]
Hugo on Tue, 15th Mar 2011 10:15 pm
will this block the https://facebulls**t.com?
how to block those ?
ArtGoddess on Tue, 22nd Mar 2011 3:45 pm
I’m wondering if this method also blocks Facebook when requesting from this url:
http://www.www.facebook.com
Seems FB has configured subdomains that way in order to avoid be blocking by hosts file.
How can this url system be blocked also?
Thank you!
poo on Sat, 2nd Apr 2011 1:07 pm
Cannot block!!! WHY?
fahd4007 on Thu, 21st Apr 2011 5:20 pm
those r good url 4 blocking facebook
2 127.0.0.1 http://www.facebook.com
03 127.0.0.1 facebook.com
04 127.0.0.1 static.ak.fbcdn.net
05 127.0.0.1 http://www.static.ak.fbcdn.net
06 127.0.0.1 login.facebook.com
07 127.0.0.1 http://www.login.facebook.com
08 127.0.0.1 fbcdn.net
09 127.0.0.1 http://www.fbcdn.net
10 127.0.0.1 fbcdn.com
11 127.0.0.1 http://www.fbcdn.com
12 127.0.0.1 static.ak.connect.facebook.com
13 127.0.0.1 http://www.static.ak.connect.facebook.com
How many times a day do you check your email? - Page 3 - The Wholesale Forums on Mon, 9th May 2011 10:08 am
[...] (I turned any sound notifications off as it would drive me mad). Here is a productivity tip – http://cariblogger.com/how-to-block-…ing-hosts-file __________________ UK Wholesale – Sign up to our mailing list and get GREAT DEALS sent to your [...]
7 Tips for a Healthy Break-Up | My Journey To Self- Actualization on Tue, 10th May 2011 3:19 am
[...] Really, it’s best, I think, to cut him from your life at first and give yourself some time to move on. (If you don’t wan to defriend him, but don’t think you have the self-control to stop stalking, check out how to block a web page by changing your host file.) [...]
jorge wiggum on Sun, 24th Jul 2011 12:52 am
Great advice, nice method. Only thing to nitpick is, get rid of the line numbers in the listing of IP mappings you tell folks to cut and paste. The line numbers, you don’t want in there. Had to manually edit them out.
And btw, you have UNIX to thank for “the hosts file” .. which in the unix structure resides at /etc/hosts
.. UNIX, developed by Ma Bell and DARPA (YOUR tax money).. the modern version of which is LINUX (www.distrowatch.com) … anyone paying money for a Window$ license is nuts! ESPECIALLY bloated government idiots!
Paul on Wed, 24th Aug 2011 5:28 pm
On top of this you can also move the location of the hosts file. Change this registry key to the location of your choice and move all contents of the “etc” directory to that location.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\DataBasePath
sweety on Sat, 5th Nov 2011 4:08 am
i hate to block fb but if i see how to block it i can know how to unblock it now i know how to unblock it i am so happy
Sam on Thu, 24th Nov 2011 2:23 pm
I did all the steps but when i want to save, it says i can not save it because im not the administrator although i was able to work in the administrator account, so can you solve this for me please, thanks
Cari on Thu, 1st Dec 2011 12:55 am
Maybe you should run the program as an administrator 1st
Hemal on Wed, 7th Dec 2011 11:56 am
TankyouTankyouTankyouTankyouTankyouTankyou
BrainDumps on Mon, 12th Dec 2011 1:40 pm
such a long process it is
I wish I could draw | A (usually) visual blog to share my work and things that other artists create. on Mon, 16th Jan 2012 5:38 am
[...] Update: You can block yourself from ever seeing facebook again by editing your /etc/hosts file and adding a series of URL’s to it. Here’s how. [...]
Arya on Wed, 22nd Feb 2012 6:53 am
Dude,You should enter the ip address also
LarryX on Fri, 16th Mar 2012 5:22 pm
How can this url system be blocked also?
facebook get registered this and more http://www.www.www names…
last name cheked:
http://www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.facebook.com
if you add one www. to this adress – it not work….
al other combination like:
http://www.www.facwebook.com
http://www.www.www.facebook.com
http://www.www.www.www.faccebook.com
and. ….. blaq bla bla ………
just be added manually in your host file…
but FACEBOOK have a https:// access also
and some other way to access….
you cand find and add it manually…
good luck…
Larry
fyidudes on Fri, 30th Mar 2012 9:16 pm
if you use 0.0.0.0 instead of 127.0.0.1 windows will simply drop the packet instead of trying to resolve it. This will prevent any delays or timeouts, and will instead simply not render the page pretty much instantaneously. 0.0.0.0 is an invalid address so windows just drops it.
Anonymous on Sat, 14th Apr 2012 8:02 pm
[...] Wenn du Facebook ohnehin nicht nutzt, dann empfehle ich es mithilfe der Hosts-Datei zu sperren. Anleitung hierzu. <Werbung> </Werbung>Ich bewerte n i c h t [...]
Anonymous on Tue, 8th May 2012 5:17 am
Can someone tell me how to block the m.facebook.com