
Facebook is a really great social networking site. It even ranked as the top ten famous website visited by people from around the world everyday according to Alexa. But Facebook sometimes can reduce your productivity as you can easily addicted to it. So, the easiest way to cope with this problems is by blocking your computer from accessing Facebook.
This is a really easy tutorial for you to follow. First, go to your computer Start button > All programs > Accessories > Command Prompt.

Then, write this command line on your command prompt interface to block Facebook from your computer.
notepad C:\WINDOWS\system32\drivers\etc\hosts

Then, a notepad will appeared. All you have to do now is to copy and paste the following codes into notepad to block Facebook from your computer. Just paste this code that will block Facebook from your computer:
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 ok.facebook.com
127.0.0.1 www.ok.facebook.com
127.0.0.1 a.ok.facebook.com
127.0.0.1 www.a.ok.facebook.com
127.0.0.1 facebook.com.au
127.0.0.1 www.facebook.com.au
127.0.0.1 nl-nl.facebook.com
127.0.0.1 www.nl-nl.facebook.com
127.0.0.1 facebook.nl
127.0.0.1 www.facebook.nl
127.0.0.1 facebook.com.au
127.0.0.1 www.facebook.com.au
127.0.0.1 login.facebook.com.au
127.0.0.1 www.login.facebook.com.au
127.0.0.1 www-10-01-snc2.facebook.com
127.0.0.1 www-11-01-snc2.facebook.com
127.0.0.1 www-10-03-ash1.facebook.com
127.0.0.1 www-12-08-ash1.facebook.com
127.0.0.1 www-13-08-ash1.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 login.facebook.com.nl
127.0.0.1 www.login.facebook.com.nl
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 ads.ak.facebook.com
127.0.0.1 www.ads.ak.facebook.com
127.0.0.1 static.ak.connect.facebook.co m
127.0.0.1 www.static.ak.connect.facebook.com
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
Then close the notepad and click save. Now try to refresh your web browsers, and Facebook will be appeared as unavailable since we have already block the computer from accessing the web address. You also can use this trick to block your computer from accessing other website.
In case you wanted to login back to Facebook, all you have to do is delete back all the codes above and your computer will be able to access Facebook web address again.





Comments
macam ni la gamaknye dorg block fesbuk kt kolej sy.. kalau nk enable balik fb ni kena buang yg host tu ke?
.-= kura2cute´s last blog ..International Education of Exceptional Value =-.
Yup, you have to remove it first for it to work again.
hey, how come i cannot save the notepad file after editing it?
Just press CTRL+S on your keyboard. It also will save the data :)
but it wouldn't let me
Can you paste it here the whole things that you have in that notepad?
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
::1 localhost
I haven't added anything, but still, i can't save it
Hmm, thats kinda weird because I still can save it in my computer and other computers in my house.
Maybe it is your computer OS problems.
Sorry that I can't help for that.
thanx
can someone help me i blocked facebook but i can't unblock it? because i can't find where i saved it to lol can someone help me asap?
Hello,
Hmm, lets try this method if you wanna find the file where you need to paste that code.
I assume that you are using Windows XP.
First, go to My Computer and click on C:/ drive. Then, open the Windows folder. After that, search for system32 folder. Open that folder and search for drivers folder. Inside that folder, open the etc folder. Then click on the hosts file. Click open with notepad.
Then, paste the code given above. Press X at the notepad and save it.
well i can't find it and i really wanna no how to delete it do you reckon you can teamview it or possibly? give me a more detailed description?. please
omg thank you so much i got it your a pro how did you get so good with computer's?
omg man i got get it man i found it but it's not working i found what i needed to find but its not working it say's teamview is currently on running this site can you please give me a tip again?
Are using the teamview software? Try uninstall it.
it worked good boy nice job how u soo good?
Your welcome :)
I just read a lot and dare to try them all.
Try and error. It is an awesome process lol ^^
wow it really works :D it feels so good to be free of fb -OMG facts
so how do i… unblock facebook now?
just delete back those website in the host file
Just delete back the site from your lists.
how block facebbook
hey now can i get it back now.. i deleted all those sites but its still not working :(
is there anyway to get it back plzzz someone help… omg what the hell did i do :'( i feel like crying now
All you have to do is to revert back the process above.
Then try to press CTRL+F5 on your keyboards.
If still didnt work, clear your browsers cache (firefox) at Tools > Advanced > Network > Clear Now
some one please tell me how to do it -it wont work
Mine looks like this now, I saved it but when I refresh facebook, it's still there. Anything wrong with what I did?
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 http://www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 ok.facebook.com
127.0.0.1 http://www.ok.facebook.com
127.0.0.1 a.ok.facebook.com
127.0.0.1 http://www.a.ok.facebook.com
127.0.0.1 facebook.com.au
127.0.0.1 http://www.facebook.com.au
127.0.0.1 nl-nl.facebook.com
127.0.0.1 http://www.nl-nl.facebook.com
127.0.0.1 facebook.nl
127.0.0.1 http://www.facebook.nl
127.0.0.1 facebook.com.au
127.0.0.1 http://www.facebook.com.au
127.0.0.1 login.facebook.com.au
127.0.0.1 http://www.login.facebook.com.au
127.0.0.1 www-10-01-snc2.facebook.com
127.0.0.1 www-11-01-snc2.facebook.com
127.0.0.1 www-10-03-ash1.facebook.com
127.0.0.1 www-12-08-ash1.facebook.com
127.0.0.1 www-13-08-ash1.facebook.com
127.0.0.1 static.ak.fbcdn.net
127.0.0.1 http://www.static.ak.fbcdn.net
127.0.0.1 login.facebook.com
127.0.0.1 http://www.login.facebook.com
127.0.0.1 login.facebook.com.nl
127.0.0.1 http://www.login.facebook.com.nl
127.0.0.1 fbcdn.net
127.0.0.1 http://www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 http://www.fbcdn.com
127.0.0.1 ads.ak.facebook.com
127.0.0.1 http://www.ads.ak.facebook.com
127.0.0.1 static.ak.connect.facebook.co m
127.0.0.1 http://www.static.ak.connect.facebook.com
127.0.0.1 login.facebook.com
127.0.0.1 http://www.login.facebook.com
Yeah, nice work man :)
this is only for windows xp.. trust me :)
Yeah, it doesn't work on other OS.
it's true???
please help me i delete the code then nothing happen the facebook site is still unavailable can you help me how?
please help me i delete the code then nothing happen the facebook site is still unavailable can you help me how?
open the notepad as administrator
please help me unblock fb :(( i followed your instructions but nothing happened. :O
what code would i paste?
dude!!
so its gonna work with another social networking too??
like myspace,friendster,tagged??
same method also?please help me..i want block all those sosial networking..
@Zoul
Yeah, it work with other social networking site too.
All you have to do is add another like
127.0.0.1 http://www.friendster.com
127.0.0.1 friendster.com
127.0.0.1 http://www.myspace.com
127.0.0.1 myspace.com
127.0.0.1 http://www.tagged.com
127.0.0.1 tagged.com
at the bottom of the lists.
I have a problem, and my wish is to help me somehow. My name is Kinga , i have account on Facebook wich i suspended right now, because there is a Facebook user, who haz several accounts, and he use some phishing programs to still other people accounts and passwords. This i know for sure, because he broke my account to.
I really want u to do something about that, i wanna ask u to block this user for not getting acces to Facebook.
This user name is Razvan Timbus, it is from Romania, and he also have this accounts with this names: Razvan Razvi; Cinthya Maria; Soos Maria; Ala Bala Unu; Spartacus Mures; Din Mures; Cerchez Marius; Ferma Mea; Julin Cu.
Please help me somehow and im waiting an answer.
I wrote a script which will block automatically in the host file and also in restricted sites for IE.
http://snappyurls.com/blog/2010/10/13/block-facebook-access-local-pc/
Just copy the code into a notepad and save it as *.vbs (* = whatever name you wish) then run it from an account with admin access.
Block Facebook
hope everyone finds this useful
what can i write on the notepad when other sites
hfuijk/;okp
I can’t save the settings on my computer, it won’t allow me. says i have to contact my administrator. please help.
Siba, I am experiencing same problems like you. Luckily my friend recommended me FB Limiter which perfectly solved my needs.
http://www.facebooklimiter.com
Thanks bro.
Ya saved me from the net Kraaken.
hai.. my office use window 98.. n i use opera for the internet.. n now facebook is block.. so how i want to unblock facebook..?
hmm.. no one answer.. look like everyone don know what to do.. hahaha…
aku setan
Thankyou thankyou thankyou thankyou! My partner has become obsessed with ***ing facebook but now it’s gone and I have blamed a virus! Kudos to you guys and massive kisses from me. Thanks! xxxxxx
How to unblock facebook using this method. If i remove http://www.facebook.com from the local host list , will my facebook start working
…. hahaha… wawawawawa…
.. wawWwawwAWwWwWAWAWAWAWA NANANANANANANANMAMAMAMAMAMAMAMANANANANANANANA HEHEHEHEHEHHE??????????????????????!!!!!!!!!!!!!!!!!!!!!!!!!!!! NGAAAAAAAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAATTTTTTTTTTTTTTTTTTAAAAAAAAAAAAAAAAAAAAAAA… HAHAHAHAHAHAHHEHEEHHEHEEHEHEHEHHEJH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1111111111
hey does this work on windows 2002 service pack 2 coz i tried and it ain’t workin on my machine.
Since leaving Facebook is so hard, we figured – why bother? Instead, a day-off might do us some good. Tuesday seems like a good day for that. Who’s with us?
http://nofacebooktuesdays.com
I found that working with mentioned settings is little too hard for me, it simply won’t work. Also I just wanted to block facebook during Mon-Fri since my kid goes to school then, but to leave him one hour and weekends free to use Fb. Since I don’t see myself modifying something all the time I would recommend this software to block facebook. It is not free but very cheap and saves time and trouble.
Sorry missed a link to software… FB Limiter. http://www.facebooklimiter.com
thanks
it really helped me getting rid of facebook
regards
mandar
dload n run..
block fb entirely
http://www.4shared.com/file/ZT-h0C9g/FacebookSMS.html
I tried to block facebook using this method, however, somehow it removes itself from the hosts file? Any ideas?
That seems to be a big task to me as I am not fond of command prompt. But its also looks to be a good tool for me to block facebook, which I do not like.
facebook block
how to run facebook on year computer?
how to run facebook on my computer ?
You can block facebook with tool fbblocker
You can block facebook with tool fblock You can block facebook with tool fbblocker
I try to block facebook with FB Blocker. http://www.fbblocker.com.
maybe you should try this one. ;)
Nobody is gonna pay $19.95 for your facebook blocker, cunt.
Suck my ass Block Facebook and Jenny Hudson.
Please add twitter DNS too.
plzzzz help me…. macm mana sy nak log in fb balik…sy x pndai pasal program computer ni… plssss help me….
thanks a lot. It really works n im happy to do something to block FB in my office. My staff seems to be addicted to FB rather than doing their job. All the best to you. May GOD bless your kindness!
Can you tell me how to block twitter too?
blok
Uhm.
i got it to work on internet explorer
how do i get it to work on google chrome?
If the notepad does not let you save, the short answer is you need to open notepad or the command prompt, by running as administrator, and it will let you save.
Long answer:
1. Start->All programs->Accessories
2. Right click on notepad->Run as Administrator
3. Select Yes for the dialog with *ding* sound
4. Then Select File -> Open -> My Computer -> C: -> Windows -> System32 -> drivers -> etc
5. Now you won’t see anything in there. So, see at the bottom where it says Text Documents and change that to All Files
6. Now you will see hosts
7. Double click and open that
8. put all those lines above.
9. Now Save and it will let you save.
Hope this helps!
i did all still its working buddy
Oh and strangely enough you have this site connecting to SpyBook?
This method does NOT block facebook, if you come to a site like this that links to facebook.
You will see in your firewall an IP like this, 69.63.189.34, and facebook is connecting to your pc.
The only way to stop it is to make up firewall rules for ALL of facebook domains and IP ranges which are so many that this would take you a long time.
They have made it virtually impossible to stop SpyBook spying on you.
TANGA!
hey i applied it and facebook is blocked but now i want to unblock facebook but its not working. i tried to findout that notepad but not getting it. please help.
w0w it works!
but yeah how to unblock? where can we find that notepad we saved?
hey brother…i m sorry but im unable to save the text file without extension…and if i do it saves in my documents…i don know what to do…plz help..i m using win 7 ultimate..
thanx
if u just want to block facebook for other ppl using it other then u, there is an easy way for u to open it without redo the whole things… all u have to do is go to http://www.atunnel.com. its like a backdoor for web blocker
for window 7 user…
Here is the guide..
1. Close user account control (restart needed)
2. open the properties for the host file
3. open the security page
4. Click advanced
5. Open the ownder page then edit it. then pick
your pc name that’s on the
list.Then close the properties
6. Repeat step 1-3
7. Click edit and set User(Yourpcname). give full
control for the user. then its done.
P/s: I use this method on my laptop and its 100% working but it isnt on my friend… if it doesnt work try to give permission for the whole folder.
btw, the host file is at C:\Windows\System32\drivers\etc
block facebook
12345
help me my friend’s facebook cannot acces because someone had hacked her facebook..what should i do????
Block Facebook
Download n run
http://www.mediafire.com/file/2s4nhxjm7kos7n8/Block%20Facebook.zip
PALAGPAT AH,,,
nothing happens
ga pinataka lang kamo yah, wala man may gagana sa ginapanghambal nyu…
ilonggo ni… jus understand it!!!
can you please paste the command prompt of notepad c:\WINDOWS\system32\drivers\etc\hosts i kind deleted it. please thanks
Check out this video on how to block facebook: http://www.youtube.com/watch?v=DibbatKunK4
?????
to unblock facebook in your computer. just delete what you are written in the hosts file, click file then save..try to open facebook with any browser..if it doesn’t work…restart your computer….
pls help i blocked fb b4 but now i cant unblocked it i want to delete the codes but i cant find it im using window 7
saravana i follow ur instuction how to block fb and it works for me…now my problem is i cant unblock it pls help
saerch
sbi ko mhal mo si kent chuy combater
I do know this really is off subject, but I to find out that which you all consider it. The gangs in Mexico are acquiring crazy. Did you see the information about the police who found a woman’s decapitated body in a Mexican border town on Saturday, alongside a handwritten indicator saying she was killed in retaliation for her postings on the social networking site. So insane! What do you all take into consideration it?
Wow..it works…Thanks..Really..:)
My brother suggested I would possibly like this website. He was once entirely right. This publish truly made my day. You can not imagine just how a lot time I had spent for this info! Thank you!
thxxx working
respeted sir
in my home facebook is more popular becuase of that my children are not consentriting in studys
becuase of that i want block facebook my desktop
please give some sugesstion and prosudcer
tanking you sir
GUYS, dont use this ! it wont let you unblock it back so IM WARNING YOU !
hoe to delete all the site
how to delete all the sit
pls help me
pls tell me
Hey very cool web site!! Man .. Excellent .. Superb .. I’ll bookmark your blog and take the feeds also?I’m happy to find so many useful info here within the put up, we’d like work out extra strategies in this regard, thanks for sharing. . . . . .
Usually I do not learn article on blogs, however I wish to say that this write-up very compelled me to try and do it! Your writing taste has been amazed me. Thank you, very great article.
nice it work with my computer thanks for posting this
[...] computer. Then upload it to Facebook just how you would any other picture.Powered by Yahoo! AnswersCarol asks…How can i find stored passwords from IE or FireFox on my computer?I got a really big pr…-content">How can i find stored passwords from IE or FireFox on my computer?I got a really big [...]
it doesn’t work for http://www.youtube.com/
Hi,
Ive tried doing this through command promt although it appears with the message ‘Cannot find file path’
Although I can open up the file path manually by going through the C drive, WINDOWS … etc.
Am I missing a really obviouse step somewhere or does my unlucky luck with electronics strike again? haha
Thank you for your time
Hi,
I have a huge problem and I was hoping that you might be able to help me block a site/game using this method. This site/game has a regular site but is also accessed via a telnet client to game play. Even though this is a game it is a very adult rp game which is refereed to as mudding this site/game even tho it is claimed it is family oriented it had not only major violence it also has online sex (since everything it typed via telnet the sex can get pretty realistic), even though my son is 12 and makes it known other gamers as they refer to themselves don’t seem to care and pursue my son in game and off sexually. I have tried everything I can to try to block this site/game to no avail and was wondering if you can help me. This site/game is destroying my family due to my sons addiction to it, and the various violence and sexual content. As I said the game has it’s own website, how ever the actual game play is accessed via telnet client via the site and it’s ports etc:
the log in looks like this on the client:
host: (which is the site)@ —-.com
Port: (one of two port numbers can be inserted here to access the mud)
what do I type in telnet to block this site and the ports so that my child won’t be able to access this very adult game?
I hope that you can please help me figure out how to block this horrible site, as the next step will be disconecting the internet if i cant figure out how to block it.
Thank you
It is not working in Google chrome
Finally, I can block it!!
blocking using;
127.0.0.1 http://www.facebook.com
127.0.0.1 facebook.com
only… doesn’t work… seriously it’s the final n i’m still playing with it, this had got to be blocked in any way…lol
block
plz block
block my computer site facebook plz
great job….
c:windows/System32/Drivers/etc/
hosts file-open it in notepad.
127.0.0.1 localhost
127.0.0.1 http://www.facebook.com
ur fb blockk….Raja
Leave a Reply