How to Block Facebook on Computer without Software

You should block facebook on your windows PC now! Why?

If you spend more than 2 hours/day using your facebook account, whether on your PC and your smart-phone, this may be a symptom that you are addicted to facebook, which is not really good if we can’t say it is bad.

block-facebook-computer

Facebook.com reveals that, in average, American people spend a minimum of 40 minutes to surf and have other activities on their facebook accounts.

Facebook Addiction

facebook-addiction

Do you know that Facebook addiction will drop not less than 50% of your productivity rate in doing work or other important activities? In addition, for children in the school-age to spend more time on facebook means less time for studying and doing their homeworks.

How much are you addicted to facebook? On what level is your facebook addiction level? Is it 0-5, 6-10, 11-20, or even more than 21?

If you have fallen into a facebook addict category, then it is time for you to block your facebook access from now on, at least to reduce your addiction level.

Facebook Threats for Children

facebook-and-child

Besides having the possibility of dropping employees productivity rate at work, facebook also poses threats for children.

Despite facebook puts limitation on minimum age upon registration, a minimum of 17 years of age, to be able to register yet without further verification children still can fake their date of birth to fulfill facebook registration requirement.

Advice for Facebook Team: Facebook needs to think of and develop a feature to make sure and to verify that the date of birth given upon registration is not bogus thus children who are under legal age of 17 may not join and register on Facebook.

Some of threats for children posed by the excessive use of Facebook are:

  1. Child Abuse
  2. Children trafficking
  3. Child Cyber-Bullying
  4. Crude Language
  5. Adult explicit content such as language, photos and videos.

Those threats cause negative effect for children both mentally and may impair their thought and idea creation.

In addition, some children really like to use the facebook games features, which evidently may cause them to be indolent of studying and choose to have more time to play games on facebook.

With the threats of facebook addiction and negative impact on children, as parents or teachers you may concern about the children safety. As precaution, facebook blockading on your computer needs to be done, or you may also supervise your children activity on their smart-phone with software spy.

Smart Ways of Using Facebook:

Despite some negative effects and threats posed by facebook, there are of course still many positive effects that you can get if you use facebook wisely.

Here are some smart ways of using facebook:

  1. Put limit on your maximum time of using facebook in a day. Two hours per day seems to be adequate.
  2. Make friends only with the person you have already known.
  3. Before accepting any friend requests, check their profile in advance.
  4. Do not post and upload all of your everyday activities on Facebook.

How to Block Facebook on Your Windows-based PC with Hosts File

One of the easy ways blocking facebook in windows-based PC without any help of software needed is by adding codes to the Hosts File.

What is Hosts File?

The hosts file is a computer file used by an operating system to map hostnames to IP addresses.

For Windows OS, these files are located in %SystemRoot%system32driversetchosts

Blocking Facebook with Hosts File

To be able to edit the hosts file you need to have Administrator rights in windows.Here’s how.

  1. Open Notepad as Administrator. From Start menu → type “notepad” (without parentheses) on the searching form. Then Right-Click on the notepad and choose Run as Administrator.
    notepad-run-as-administrator

    Notepad Run as administrator

  2. Open Hosts File. After the Notepad is running click File → Open File → C:WindowsSystem32driversetc → ( All Files) → Choose hosts and click Open.
  3. open-hosts-file-notepad

    Notepad Open Hosts File

  4. Code for Block Facebook. Copy and Paste the codes below in the Hosts File, then save them.
    
    # Facebook
    0.0.0.0 0-act.channel.facebook.com
    0.0.0.0 0-edge-chat.facebook.com
    0.0.0.0 1-act.channel.facebook.com
    0.0.0.0 1-edge-chat.facebook.com
    0.0.0.0 2-act.channel.facebook.com
    0.0.0.0 2-edge-chat.facebook.com
    0.0.0.0 3-act.channel.facebook.com
    0.0.0.0 3-edge-chat.facebook.com
    0.0.0.0 4-act.channel.facebook.com
    0.0.0.0 4-edge-chat.facebook.com
    0.0.0.0 5-act.channel.facebook.com
    0.0.0.0 5-edge-chat.facebook.com
    0.0.0.0 6-act.channel.facebook.com
    0.0.0.0 6-edge-chat.facebook.com
    0.0.0.0 act.channel.facebook.com
    0.0.0.0 api-read.facebook.com
    0.0.0.0 api.ak.facebook.com
    0.0.0.0 api.connect.facebook.com
    0.0.0.0 api.facebook.com
    0.0.0.0 app.facebook.com
    0.0.0.0 apps.facebook.com
    0.0.0.0 ar-ar.facebook.com
    0.0.0.0 attachment.fbsbx.com
    0.0.0.0 attachments.facebook.com
    0.0.0.0 b-api.facebook.com
    0.0.0.0 b-graph.facebook.com
    0.0.0.0 b.static.ak.facebook.com
    0.0.0.0 b.static.ak.fbcdn.net
    0.0.0.0 badge.facebook.com
    0.0.0.0 beta-chat-01-05-ash3.facebook.com
    0.0.0.0 bigzipfiles.facebook.com
    0.0.0.0 blog.facebook.com
    0.0.0.0 channel-ecmp-05-ash3.facebook.com
    0.0.0.0 channel-staging-ecmp-05-ash3.facebook.com
    0.0.0.0 channel-testing-ecmp-05-ash3.facebook.com
    0.0.0.0 check4.facebook.com
    0.0.0.0 check6.facebook.com
    0.0.0.0 code.facebook.com
    0.0.0.0 connect.facebook.com
    0.0.0.0 connect.facebook.net
    0.0.0.0 d.facebook.com
    0.0.0.0 de-de.facebook.com
    0.0.0.0 developers.facebook.com
    0.0.0.0 edge-chat.facebook.com
    0.0.0.0 ent-a.xx.fbcdn.net
    0.0.0.0 ent-b.xx.fbcdn.net
    0.0.0.0 ent-c.xx.fbcdn.net
    0.0.0.0 ent-d.xx.fbcdn.net
    0.0.0.0 ent-e.xx.fbcdn.net
    0.0.0.0 es-la.facebook.com
    0.0.0.0 external.ak.fbcdn.net
    0.0.0.0 facebook.com
    0.0.0.0 facebook.de
    0.0.0.0 facebook.fr
    0.0.0.0 fb.me
    0.0.0.0 fbcdn-photos-a.akamaihd.net
    0.0.0.0 fbcdn-photos-e-a.akamaihd.net
    0.0.0.0 fbcdn-profile-a.akamaihd.net
    0.0.0.0 fbcdn-sphotos-a-a.akamaihd.net
    0.0.0.0 fbcdn-sphotos-a.akamaihd.net
    0.0.0.0 fbcdn-sphotos-b-a.akamaihd.net
    0.0.0.0 fbcdn-sphotos-c-a.akamaihd.net
    0.0.0.0 fbcdn-sphotos-d-a.akamaihd.net
    0.0.0.0 fbcdn-sphotos-e-a.akamaihd.net
    0.0.0.0 fbcdn-sphotos-f-a.akamaihd.net
    0.0.0.0 fbcdn-sphotos-g-a.akamaihd.net
    0.0.0.0 fbcdn-sphotos-h-a.akamaihd.net
    0.0.0.0 fbcdn-video-a-a.akamaihd.net
    0.0.0.0 fbcdn-video-b-a.akamaihd.net
    0.0.0.0 fbcdn-video-c-a.akamaihd.net
    0.0.0.0 fbcdn-video-d-a.akamaihd.net
    0.0.0.0 fbcdn-video-e-a.akamaihd.net
    0.0.0.0 fbcdn-video-f-a.akamaihd.net
    0.0.0.0 fbcdn-video-g-a.akamaihd.net
    0.0.0.0 fbcdn-video-h-a.akamaihd.net
    0.0.0.0 fbcdn-video-i-a.akamaihd.net
    0.0.0.0 fbcdn-video-j-a.akamaihd.net
    0.0.0.0 fbcdn-video-k-a.akamaihd.net
    0.0.0.0 fbcdn-video-l-a.akamaihd.net
    0.0.0.0 fbcdn-video-m-a.akamaihd.net
    0.0.0.0 fbcdn-video-n-a.akamaihd.net
    0.0.0.0 fbcdn-video-o-a.akamaihd.net
    0.0.0.0 fbcdn-video-p-a.akamaihd.net
    0.0.0.0 fbcdn-vthumb-a.akamaihd.net
    0.0.0.0 fbcdn.com
    0.0.0.0 fbcdn.net
    0.0.0.0 fbexternal-a.akamaihd.net
    0.0.0.0 fbstatic-a.akamaihd.net
    0.0.0.0 fr-fr.facebook.com
    0.0.0.0 graph.facebook.com
    0.0.0.0 hi-in.facebook.com
    0.0.0.0 inyour-slb-01-05-ash3.facebook.com
    0.0.0.0 it-it.facebook.com
    0.0.0.0 ja-jp.facebook.com
    0.0.0.0 login.facebook.com
    0.0.0.0 m.facebook.com
    0.0.0.0 messages-facebook.com
    0.0.0.0 mqtt.facebook.com
    0.0.0.0 newsroom.fb.com
    0.0.0.0 orcart.facebook.com
    0.0.0.0 origincache-ai-01-05-ash3.fbcdn.net
    0.0.0.0 origincache-starfacebook-ai-01-05-ash3.facebook.com
    0.0.0.0 photos-a.ak.fbcdn.net
    0.0.0.0 photos-b.ak.fbcdn.net
    0.0.0.0 photos-c.ak.fbcdn.net
    0.0.0.0 photos-d.ak.fbcdn.net
    0.0.0.0 photos-e.ak.fbcdn.net
    0.0.0.0 photos-f.ak.fbcdn.net
    0.0.0.0 photos-g.ak.fbcdn.net
    0.0.0.0 photos-h.ak.fbcdn.net
    0.0.0.0 profile.ak.facebook.com
    0.0.0.0 profile.ak.fbcdn.net
    0.0.0.0 pt-br.facebook.com
    0.0.0.0 s-external.ak.fbcdn.net
    0.0.0.0 s-static.ak.facebook.com
    0.0.0.0 s-static.ak.fbcdn.net
    0.0.0.0 s-static.facebook.com
    0.0.0.0 scontent-a-lax.xx.fbcdn.net
    0.0.0.0 scontent-a-sin.xx.fbcdn.net
    0.0.0.0 scontent-a.xx.fbcdn.net
    0.0.0.0 scontent-b-lax.xx.fbcdn.net
    0.0.0.0 scontent-b-sin.xx.fbcdn.net
    0.0.0.0 scontent-b.xx.fbcdn.net
    0.0.0.0 scontent-c.xx.fbcdn.net
    0.0.0.0 scontent-d.xx.fbcdn.net
    0.0.0.0 scontent-e.xx.fbcdn.net
    0.0.0.0 scontent-mxp.xx.fbcdn.net
    0.0.0.0 scontent.xx.fbcdn.net
    0.0.0.0 secure-profile.facebook.com
    0.0.0.0 secure.facebook.com
    0.0.0.0 sphotos-a.xx.fbcdn.net
    0.0.0.0 ssl.connect.facebook.com
    0.0.0.0 ssl.facebook.com
    0.0.0.0 star.c10r.facebook.com
    0.0.0.0 star.facebook.com
    0.0.0.0 static.ak.connect.facebook.com
    0.0.0.0 static.ak.facebook.com
    0.0.0.0 static.ak.fbcdn.net
    0.0.0.0 static.thefacebook.com
    0.0.0.0 staticxx.facebook.com
    0.0.0.0 touch.facebook.com
    0.0.0.0 upload.facebook.com
    0.0.0.0 video.xx.fbcdn.net
    0.0.0.0 vpn.tfbnw.net
    0.0.0.0 vthumb.ak.fbcdn.net
    0.0.0.0 vupload.facebook.com
    0.0.0.0 vupload2.vvv.facebook.com
    0.0.0.0 www.connect.facebook.net
    0.0.0.0 www.facebook.com
    0.0.0.0 www.facebook.de
    0.0.0.0 www.facebook.fr
    0.0.0.0 www.fbcdn.com
    0.0.0.0 www.fbcdn.net
    0.0.0.0 www.login.facebook.com
    0.0.0.0 zh-cn.facebook.com
    0.0.0.0 zh-tw.facebook.com
    

    If you do not do the blocking on IPv6, then facebook can still be accessed with the use of prefix https://

    The Code Explanation:

    When we type URL (Universal Resource Locator) on the browser’s address bar like: http://facebook.com, then the system will check whether the site has already got its IP address defined in the hosts file.

    Apparently, the IP address of Facebook is 127.0.0.1 or commonly called the localhost. It means that the system will not load Facebook from its original IP address, rather just show a blank page of the localhost IP address.

    These codes may also be used on different operating systems like Mac and Linux.

  5. Restart your computer.Now try to open facebook.com on all your internet browser, and now facebook has been blocked.

    facebook blocked

  6. Blocking with Hosts File: The Pros and Cons

    Pros:

    1. Easy to Use and Practical. You don’t need to install any software that may overload your windows performance. All you have to do is just edit the codes in notepad.
    2. Blocking on all browser. You don’t have to install the Mozilla® Firefox Add-Ons or Google® Chrome extension which also may consume your RAM usage.
    3. Blocking various websites. Beside can be used to block facebook, you can also block other websites, such as sites with adult content or sites which promotes gambling. Just add “127.0.0.1 URL of the sites” without http://.

    Cons:

    The File Hosts can be easily edited if someone has administrator right on the computer.

    This, however, can be solved by making two users on the computer, Administrator and User. Give the access right as user for your employees or your children so that they will not be able to edit the hosts files.

    Conclusion

    Using the facebook wisely and then you can gain benefit from it, such as as communication media and also build good relationships with relatives, friends, and colleagues. Nonetheless, if you spend more time on Facebook, this may well be an indication that you are addicted to Facebook.

    Facebook addiction can cause the productivity rate of your employees to drop. It also poses threats for the children. So, one of the many ways of preventing the addiction and protecting your children from the cyber-crime is by blocking access to Facebook.

    The easiest way to block facebook access is by using the hosts files. It is easier and simpler since it does not use any additional softwares, especially for windows beginners.

    Are you a facebook addict?

    Do you have other tips to prevent anyone from having facebook addiction?

    Please, feel free to share in comment.




About the author: Bambang Oke, Windows User and Mac Lovers. Try to give the best tips and tricks for each of the issues surrounding the computer and gadget

{ 28 comments… add one }
  • Azzy

    Work’s well. Thank you for taking the time to write this.

  • Hassaan Habib

    i want only block facebook from user i can do the procedure mention here but no response and website will be open kindly tell me the correct procedure that how can we block only facebook

  • Jakub

    127.0.0.1 m.facebook.com

  • Shahinaz

    Hi, I really appreciate this nice hack. I am trying to save these codes on my haosts file and denied access! I am using windows 10. I am the only user on my own oc and i am the administrator. Any help please?

    • For Windows 10

      OK, if you got “edit hosts file windows 10 access denied” you can try to this:
      1. copy hosts file from C:WindowsSystem32Driversetc and paste on your desktop.
      2. Edit hosts file on desktop using notepad.
      3. Copy, and paste from desktop to C:WindowsSystem32Driversetc.
      4. “Replace the file in the destination.”
      5. “Continue”

      Hope this help.

      • JTB

        you can also change write permissions(which by default in windows 10 are read/read execute only) on your hosts file before you try to edit it..

        modify and write for all application purposes & users.

        “administrators and system by default have all permissions”

        don’t forget to revert back to original permissions after edit. good idea to do this offline too.

  • JTB

    you can also change the permissions to write/modify in drivers > etc > hosts file to edit and save but revert back to read/read & execute only afterwards. good idea to do this offline.

  • Johnny

    Thank you so much!

  • kal

    hilo i was trying to block but when i try to save it but i cant

  • cranky

    Hello.

    I can’t block login pages in english and greek languages.
    I have add lines « ::1 el-gr.facebook.com/login/ » and « ::1 en-gb.facebook.com/login/ », but these still loading.

    How may I solve this ?
    (I have Win 7 x64, and open Notepad as administrator)

    Thanks in advance

  • cranky

    Thanks a lot.

    This was the solution.

    Also, I added two lines more :
    127.0.0.1 m.facebook.com/login.php
    and
    ::1 m.facebook.com/login.php

    Now, facebook is absolutely banned from my pc.

  • Aarushi Vijay

    I really appreciate the things suggested over here!
    But can you just help me out , if I want to block the website on my android tablet?

    Thanks a lot, in advance.

    • For blocking on android, you can edit hosts file on /system/etc/hosts.

      You can using root explorer to browse file and folder in system directory.

      Note: This requires a rooted Android device.

  • Casey Lee

    2 things I’m concerned about here: 1. I don’t normally have ipv6 on…do I turn it on, paste these codes then turn it back off, and hope for the best or does ipv6 have to stay on for this to work ? Also , my host file has a bunch of other shit on it all the way to this thingy: # [end of entries generated by MVPS HOSTS] so where do I put the facebook code?

    • 1. keep your ipv6 by default.
      2. Copy and paste facebook block code at above of # [Start of entries generated by MVPS HOSTS]

  • Andrea Iris

    Good post. Kindly add how to completely block twitter using hosts. Also kindly post how to block fb and twitter on Windows 10 MUI app, since the above domains does not block access to these sites using windows 8.1/10 app.

    • for block twitter
      0.0.0.0 twitter.com
      0.0.0.0 www.twitter.com

      • Hi dear, thanks.

        But I want to block my windows 10 apps (FB and twitter) from logging in. Please help me.

        (Even after doing all this I am able to access twitter through windows 10 app. need help in blocking this)

  • kondi rakhi

    wow..great work…it is easy to understand and use too…..no need of extra software needed to it .. i wanna thank to the one who had brought to the screen and the website devolper too … keep helping on 🙂

  • Please help me to block twitter on windows 10 app.

  • Sam

    Can Anyone tell me that how to unblock facebook from browser now??

    • Bambang Oke

      try using vpn like tunnelbear

Leave a Comment