Download ArticleDownload Article

This How.com.vn teaches you how to prevent someone from accessing Facebook on a computer, smartphone, or tablet.

Method 1
Method 1 of 4:

Windows

Download Article
  1. How.com.vn English: Step 1 Open your computer's...
    Open your computer's "hosts" file. You'll need to be on an administrator account to do this:
    • Open Notepad in Administrator mode.
    • Click File, then click Open....
    • Navigate to the "hosts" file by clicking This PC, double-clicking your hard drive, opening the "Windows" folder, opening the "System32" folder, opening the "drivers" folder, and opening the "etc" folder.
    • Click the "Text Documents" drop-down box, then click All Files.
    • Allow editing for the "hosts" file by right-clicking it, clicking Properties, clicking Security, clicking Edit, checking the "Full Control" box, clicking OK, clicking Yes, and clicking OK.
    • Double-click the "hosts" file to open it in Notepad.
  2. Step 2 Place the cursor at the bottom of the "hosts" file.
    Scroll down to the bottom of the "hosts" file, then click below the very last entry at the bottom.
    • You may have to click at the end of the last line in the "hosts" file and then press Enter.
    Advertisement
  3. How.com.vn English: Step 3 Enter the redirect address.
    Type in 127.0.0.1 at the very bottom of the "hosts" file, then press the Tab key.
  4. How.com.vn English: Step 4 Enter Facebook's address.
    Type in facebook.com and then press Enter. You should now have a line that resembles the following:
    • 127.0.0.1facebook.com
    • If you use Google Chrome, press the spacebar after typing in facebook.com, then type in www.facebook.com as well.
  5. How.com.vn English: Step 5 Add Facebook's mobile address.
    To do this, type in 127.0.0.1m.facebook.com and press Enter.
    • Again, if you use Google Chrome, make sure you place a space after "m.facebook.com" and type in www.m.facebook.com before pressing Enter.
  6. Step 6 Save your "hosts" file.
    In order to save your "hosts" file to override the original file, do the following:
    • Click File, then click Save As....
    • Click Text Documents in the bottom-right corner, then click All Files in the drop-down menu.
    • Click the "hosts" file to select it.
    • Click Save, then click Yes when prompted.
  7. How.com.vn English: Step 7 Restart your computer.
    Click Start
    How.com.vn English: Windows Start
    , click Power
    How.com.vn English: Windows Power
    , and click Restart. Once your computer finishes restarting, Facebook should be blocked in all web browsers.
  8. Advertisement
Method 2
Method 2 of 4:

macOS

Download Article
  1. How.com.vn English: Step 1 Open your Mac's...
    Open your Mac's "hosts" file. You must have administrator privileges on your account to do this:
    • Open Spotlight
      How.com.vn English: Mac Spotlight
      .
    • Type in terminal, then double-click Terminal.
    • Type in sudo nano /etc/hosts and press Return.
    • Enter your Mac's password when prompted.
  2. Step 2 Place the cursor at the bottom of the "hosts" file.
    Press the "Down" arrow key until your cursor is at the bottom of the "hosts" file on its own line.
  3. How.com.vn English: Step 3 Enter the redirect address.
    Type in 127.0.0.1 at the very bottom of the "hosts" file, then press the Tab key.
  4. How.com.vn English: Step 4 Enter Facebook's address.
    Type in facebook.com and then press Return. You should now have a line that resembles the following:
    • 127.0.0.1facebook.com
    • If you use Google Chrome, press the spacebar after typing in facebook.com, then type in www.facebook.com as well.
  5. How.com.vn English: Step 5 Add Facebook's mobile address.
    To do this, type in 127.0.0.1m.facebook.com and press Return.
    • Again, if you use Google Chrome, make sure you place a space after "m.facebook.com" and type in www.m.facebook.com before pressing Return.
  6. Step 6 Save your "hosts" file.
    Once you've finished editing the "hosts" file, do the following to save your changes:
    • Press Control and X at the same time.
    • Press Y when prompted.
    • Press Return.
  7. How.com.vn English: Step 7 Restart your Mac.
    Click the Apple menu
    How.com.vn English: Mac Apple
    , click Restart..., and click Restart when prompted. Once your computer finishes restarting, Facebook should be blocked in all web browsers.
  8. Advertisement
Method 3
Method 3 of 4:

iPhone/iPad

Download Article
  1. How.com.vn English: Step 1 Open your iPhone's icon Settings.
    Tap the Settings app icon, which resembles a set of gears on a grey background.
  2. How.com.vn English: Step 2 Scroll down and tap icon General.
    You'll find this option near the top of the Settings page.
  3. How.com.vn English: Step 3 Scroll down and tap Restrictions.
    It's near the middle of the General page.
  4. How.com.vn English: Step 4 Enter your Restrictions passcode.
    Type in the four-digit passcode you use to unlock the Restrictions menu.
    • If you haven't yet enabled Restrictions on this iPhone, tap Enable Restrictions at the top of the screen, then type in twice a unique passcode that you'll remember.
  5. Step 5 Scroll down and tap the green "Installing Apps" switch icon.
    This switch is in the second group of options. Tapping it causes the switch to turn grey
    How.com.vn English: iPhone Switch Off Icon
    , thus disabling the App Store.
  6. How.com.vn English: Step 6 Scroll down and tap Websites.
    It's at the bottom of the "ALLOWED CONTENT" section of options.
  7. How.com.vn English: Step 7 Tap Limit Adult Content.
    This option is near the top of the screen.
  8. Step 8 Tap Add a Website… under the "NEVER ALLOW" heading.
    You'll find this near the bottom of the screen. A text box will appear.
  9. How.com.vn English: Step 9 Enter Facebook's address.
    Type in www.facebook.com and tap Done in the lower-right side of the keyboard.
  10. How.com.vn English: Step 10 Minimize the Settings app.
    Press the Home button to do so. Your Restrictions settings will be saved.
  11. How.com.vn English: Step 11 Delete the Facebook app.
    If you have the Facebook app installed on your iPhone, tap and hold its icon until the icon starts shaking, then tap X in the top-left corner of the icon and tap Delete when prompted.
    • Since you've disabled app downloads from the App Store, it will be impossible to reinstall the Facebook app.
  12. How.com.vn English: Step 12 Delete any third-party browsers that don't use your Restrictions.
    Browsers such as Safari, Google Chrome, and Firefox will all honor your Restrictions settings by blocking Facebook, but other browsers may not depending on their privacy settings. Once you've finished this, your iPhone will no longer be able to access Facebook.
  13. Advertisement
Method 4
Method 4 of 4:

Android

Download Article
  1. How.com.vn English: Step 1 Install BlockSite.
    Open the
    How.com.vn English: Android Google Play
    Google Play Store app, then do the following:
    • Tap the search bar.
    • Type in blocksite, then tap Done or Enter.
    • Tap Block Site - Block Distracting Apps & Sites.
    • Tap INSTALL, then tap ACCEPT when prompted.
  2. How.com.vn English: Step 2 Open BlockSite.
    Tap OPEN in the Google Play Store, or tap the shield-shaped BlockSite app icon.
  3. How.com.vn English: Step 3 Tap GET STARTED.
    It's a green button near the bottom of the screen.
  4. How.com.vn English: Step 4 Tap GO TO SETTINGS.
    This button is near the bottom of the screen. Doing so will take you to a page that explains how to enable BlockSite in your Android's Settings.
  5. How.com.vn English: Step 5 Tap GOT IT.
    It's at the bottom of the screen. The appropriate Settings page will open.
  6. How.com.vn English: Step 6 Scroll down and tap BlockSite.
    Its location on the page will vary depending on your Android, but you'll find it somewhere on the page that opens.
  7. Step 7 Tap the grey "Off" switch icon.
    The switch will change color
    How.com.vn English: Android 7 Switch On
    , signifying that BlockSite is now enabled. At this point, BlockSite should re-open.
    • You may have to tap OK to confirm this step.
  8. How.com.vn English: Step 8 Tap +.
    It's in the bottom-right corner of the screen. Doing so opens the WEBSITES tab.
    • If BlockSite didn't automatically open when you turn it on in Settings, tap the "Apps" button and then select BlockSite in the list of open apps.
  9. How.com.vn English: Step 9 Enter Facebook's address.
    Type in www.facebook.com and then tap the checkmark icon
    How.com.vn English: Android 7 Done
    in the top-right corner of the screen.
  10. How.com.vn English: Step 10 Add the Facebook app to the block list.
    In order to block the Facebook app, do the following:
    • Tap in the bottom-right corner again.
    • Tap the APP tab at the top of the screen.
    • Scroll down and tap Facebook.
  11. How.com.vn English: Step 11 Consider locking your BlockSite settings.
    While BlockSite will prevent you from accessing Facebook, it doesn't include a password or a provision to prevent a user from simply deleting the BlockSite app to begin using Facebook again. You can lock BlockSite with a password by doing the following:
    • Install the Norton Lock app from the Google Play Store.
    • Open Norton Lock, then follow the on-screen instructions to add it to your Android's app permissions.
    • Create an unlock code in Norton Lock, then tap Continue.
    • Tap BlockSite and Play Store in the list of apps to lock.
  12. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I block Facebook on an Android device?
    How.com.vn English: Community Answer
    Community Answer
    Download AppLock. You set up a PIN for access.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • You can also download browser-specific extensions that will allow you to block Facebook on one browser instead of the whole computer (e.g., "Block site" for Chrome).[1]
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • When using Terminal or editing the "hosts" file in general, do not delete any information that is present in the original file. Doing so may permanently damage your computer's operating system.
      Advertisement

      About This Article

      How.com.vn English: Jack Lloyd
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for How.com.vn. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 162,784 times.
      How helpful is this?
      Co-authors: 11
      Updated: July 28, 2022
      Views: 162,784
      Article SummaryX

      You can block Facebook from being accessed on your Windows or Mac computer by adding Facebook's address to the "hosts" file, though you will need to use an administrator account to do so. iPhone users can block Facebook by enabling Restrictions from the Settings app, disabling App Store downloads, adding Facebook's address to the list of blocked websites, and deleting the Facebook app. Android users can use a free app called BlockSite to block both the Facebook website and the Facebook app from being accessed.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 162,784 times.

      Reader Success Stories

      • How.com.vn English: Joshua Bokol

        Joshua Bokol

        Jan 29, 2018

        "I really liked the process. It's very smart."
      Share your story

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement