how to block facebook on PC?
Computing and PC help and advice, programming, games, digital audio, mobile phones and electronic miscellanea.
| Announcements | Posted on | |
|---|---|---|
| Please change your TSR password | 23-05-2013 | |
| Enter our travel-writing competition for the chance to win a Nikon 1 J3 camera | 20-05-2013 | |
-
Re: how to block facebook on PC?
Why would you do that?
Anyway, assuming you have Windows, the best way I can think of it is editing (in Notepad) the file located at:
C:\Windows\System32\drivers\etc\ hosts
And copy and paste these two lines to the end of the file:
And save it.Code:209.85.171.100 facebook.com 209.85.171.100 www.facebook.com
Then any attempt to go to Facebook will lead to Google.
Also... kalbi lietuviškai? -
Re: how to block facebook on PC?
Interesting.
Also, checking with your internet service provider homepage and your internet status, there is always a block and allow option where you can totally block websites, so when you type it in, you wont be directed to the page, you just get an error, 'this page cannot be displayed thing' -
Re: how to block facebook on PC?That would block it for everyone in the house...(Original post by Mericity)
Interesting.
Also, checking with your internet service provider homepage and your internet status, there is always a block and allow option where you can totally block websites, so when you type it in, you wont be directed to the page, you just get an error, 'this page cannot be displayed thing' -
Re: how to block facebook on PC?sounds good i try this way, aciu labai(Original post by nuodai)
Why would you do that?
Anyway, assuming you have Windows, the best way I can think of it is editing (in Notepad) the file located at:
C:\Windows\System32\drivers\etc\ hosts
And copy and paste these two lines to the end of the file:
And save it.Code:209.85.171.100 facebook.com 209.85.171.100 www.facebook.com
Then any attempt to go to Facebook will lead to Google.
Also... kalbi lietuviškai?
there is only one account which is admin account, thanks anyway(Original post by Keiron)
Make sure you are in the main/admin account, go into the web browser's privacy settings and add the desired website you wish to block. Obviously make sure the other users are logged in using a different windows account so they cannot revert the settings.
some people at work spend 95% on facebook I just want to wish them happy new year(Original post by Mr Nonsense)
but why?
-
Re: how to block facebook on PC?
i did the following method as recommended and it worked fine, but how would i then unblock it, just deleting the stuff i copied in and saved does not reverse the change, its still blocked.???????
Anyway, assuming you have Windows, the best way I can think of it is editing (in Notepad) the file located at:
C:\Windows\System32\drivers\etc\ hosts -
Re: how to block facebook on PC?Assuming you've removed the entries in the HOSTS file:(Original post by celicasimon)
i did the following method as recommended and it worked fine, but how would i then unblock it, just deleting the stuff i copied in and saved does not reverse the change, its still blocked.???????
Anyway, assuming you have Windows, the best way I can think of it is editing (in Notepad) the file located at:
C:\Windows\System32\drivers\etc\ hosts
Windows Key + R
type: cmd
This should open the command prompt.
Type:
ipconfig /flushdns
Try visiting the affected site again. -
Re: how to block facebook on PC?
Just being nosey, as I like to understand learn things, why does the hosts file alteration give a google error instead of a page cannot be displayed error/connection cannot be established, as it does if you try visit the localhost/loopback 127.0.0.1 also listed in hosts?
-
Re: how to block facebook on PC?Not 100% sure on that one. I can't recreate it. I assume it's because of the shortcut they have for Facecrack was pointing to www.facebook.com/home.php?ref=logo, but Google (whose IP address it was redirecting to) could not find google.com/home.php?ref=logo, as it doesn't exist.(Original post by princessmarisa)
Just being nosey, as I like to understand learn things, why does the hosts file alteration give a google error instead of a page cannot be displayed error/connection cannot be established, as it does if you try visit the localhost/loopback 127.0.0.1 also listed in hosts?
Actually, I've managed to do it, just changed the IP address (looks like it's changed since the end of last year:

I've not farted about with the HOSTS file, but it achieves the same effect
-
Re: how to block facebook on PC?No worries(Original post by princessmarisa)
Hey, i get it now, my memory was foggy, and i thought everything in the hosts file redirected to localhost and the added IP's were facebooks'
Did a google figured out how hosts file actually works

you live and learn.
Every day's a school day in the Tech Forum.
Why would you do that?

