How to block Facebook on your phone and computer

By SoberScroll · Updated

On this page
  1. How do I block Facebook on iPhone?
  2. How do I block Facebook on Android?
  3. How do I block Facebook on a Mac or Windows PC?
  4. Where does this leak?
  5. Should I deactivate Facebook instead of blocking it?
  6. What about the feed and doomscrolling on other apps?
  7. What is a good setup to start with today?

To block Facebook on your own phone, use the tool built into it. On iPhone, set an app limit in Screen Time. On Android, set an app timer in Digital Wellbeing. On a computer, block facebook.com in your hosts file or with a browser blocker. Do all three layers (app, website, every device), or you will find the gap within a week.

This guide is about blocking Facebook for yourself, to get your time back. It is not about blocking another person on Facebook. Everything below is free.

How do I block Facebook on iPhone?

Use Screen Time. Set a limit on the Facebook app, then add the website too, so Safari does not become the back door. These steps use iOS 26 menu names. Apple has started calling its kids’ limits “Time Allowances” in the newest iOS release, but the menus for your own phone are still labelled Screen Time and App Limits. If a name differs on your phone, search Settings for “Screen Time”.

  1. Open Settings and tap Screen Time.
  2. If it is off, tap App & Website Activity and turn it on.
  3. Tap App Limits, then Add Limit.
  4. Find Facebook under Social, or search for it. Tick it. To include the website, scroll to Websites at the bottom of the list and add facebook.com.
  5. Tap Next and set a time. Pick 1 minute if you want it gone, or a small daily budget if you still need it for events and groups.
  6. Turn on Block at End of Limit, then tap Add.

When the time runs out, the icon greys out. A limit on the website entry is reported to work in Chrome and Firefox on iPhone too, but a few users report it failing on recent iOS versions, so test it yourself.

If you only want the website blocked and not limited, there is a second route. Go to Settings > Screen Time > Content & Privacy Restrictions, turn it on, then tap App Store, Media, Web, & Games > Web Content > Limit Adult Websites. Under Never Allow, tap Add Website and enter facebook.com. Apple documents this in the iPhone User Guide. The full set of iPhone options, including Downtime, is in our guide on how to block apps on iPhone.

How do I block Facebook on Android?

Use Digital Wellbeing. It has a timer for single apps, and a mode that pauses several apps together.

App timer:

  1. Open Settings and tap Digital Wellbeing (on some phones, Digital Wellbeing & parental controls).
  2. Tap App timers.
  3. Next to Facebook, tap the Set timer icon.
  4. Choose the time and tap OK.

Google says that when time runs out, the app closes and its icon dims. Timers reset at midnight. You can also delete the timer to open the app again, which takes two taps. That is the weakness.

Focus mode is a stronger option for work hours:

  1. Go to Settings > Digital Wellbeing > Focus mode.
  2. Choose the apps to pause, such as Facebook and Messenger.
  3. Tap Turn on now, or set a schedule.

While it is on, you can’t open the apps and they send no notifications. Be aware it has a Take a break button that lets you unpause for a set time. Pixel and Samsung menus differ a little, so look for the same names.

How do I block Facebook on a Mac or Windows PC?

You have three free options. Start with the one that fits your browser habits.

Option 1: a hosts file entry. This blocks the site in every browser on that computer. It is the simplest strong block.

  1. Open the hosts file as an administrator. On a Mac, run sudo nano /etc/hosts in Terminal. On Windows, open Notepad as administrator and open C:\Windows\System32\drivers\etc\hosts.
  2. Add these lines at the bottom:
0.0.0.0 facebook.com
0.0.0.0 www.facebook.com
0.0.0.0 m.facebook.com
0.0.0.0 fb.com
  1. Save the file. Flush the cache. On Mac, run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. On Windows, run ipconfig /flushdns in Command Prompt.

Add messenger.com as well if you want that gone. Also note that Facebook uses other domains for images and video. The page will usually fail to load fully without the main one, so you do not need to chase them.

Option 2: uBlock Origin. Install it from your browser’s official store, open its dashboard, go to My filters, and add:

||facebook.com^$document

Click Apply changes. This blocks the pages themselves, and it only works in browsers where you installed it. Chrome’s newer extension rules have limited some blockers, so Firefox is the safest home for uBlock Origin. Our guide on how to block websites on Chrome covers the Chrome options.

Option 3: Screen Time on Mac. In System Settings > Screen Time, you can set schedules and limits for app categories such as Social Media. Apple’s pages for macOS 27 call these Schedules and Time Allowances, and older versions say Downtime and App Limits. Website blocking sits under Content & Privacy Restrictions, and the exact path varies by macOS version, so check your own screen. If you turn on Share Across Devices, your iPhone and Mac can follow the same rules.

Where does this leak?

Every free method has holes. These are the ones people actually use.

  • The browser. You block the app, then open facebook.com in Safari or Chrome. Block the website too, on every browser.
  • Messenger. You delete Facebook, open Messenger, and tap into the feed from there. Decide what to do with it.
  • The passcode or the timer. On iPhone, if you know the Screen Time passcode, you will enter it at 11 pm. On Android, you can delete the app timer in seconds. Free tools trust you to be the one who says no.
  • Another device. You block your phone, so you open Facebook on your laptop. Or you block your laptop, so you use your phone. Each device is its own setup.
  • Another profile or browser. A hosts file does not stop a different computer, a work laptop or a private tab on your phone. uBlock does not stop a browser you did not install it in.
  • Reinstalling or reopening. A deleted app comes back in a minute. On iPhone, you can close this under Content & Privacy Restrictions by setting installing and deleting apps to Don’t Allow.

The honest pattern is this: the first week works, then you hit a bad night and take the easy exit. The fix is a block you cannot take down in the moment, on every device at once.

That is the problem we’re building SoberScroll for. It blocks apps, sites and adult sites on your phone and laptop under one account, and when you start a mode on one device, the others follow. There is an optional Strict mode that survives restarts and blocks uninstall until the timer ends. It is not out yet, and the beta opens early 2027. If that sounds useful, join the waitlist.

Should I deactivate Facebook instead of blocking it?

Deactivating is for a longer break, and it is different from blocking. Your profile is hidden from other people, but your account and data are kept, and logging back in turns it on again.

The route has changed over the years, and Meta now sends most people through Accounts Center. As described by third-party guides, the path is Settings & privacy > Settings > Accounts Center > Personal details > Account ownership and control > Deactivation or deletion. Choose your Facebook profile and pick Deactivate account. If you do not see Accounts Center, look for Deactivation and deletion inside Your Facebook information in Facebook settings. Check Facebook’s Help Center for the current wording, because the menus move.

Two warnings. Deactivation does not stop you from logging back in, so it is not a lock. And logging in, even by accident, can reactivate the account. If you want a real lock, deactivate and block the app and site on top of it.

Facebook also had a Quiet mode in the app, which muted most push notifications on a schedule, and a daily time reminder under Your Time on Facebook. These were announced in 2020 and 2018. I could not confirm they exist in the same form in late 2026, so check your app. Even when they exist, they are reminders. They do not block anything.

What about the feed and doomscrolling on other apps?

Blocking Facebook rarely ends the habit. It moves. People swap Facebook for Instagram, YouTube or Reddit within days, because the urge is the same. If that sounds like you, read how to stop doomscrolling, and block the category of app, not one name.

Another problem is that Facebook has a few useful things: events, groups, Marketplace and a handful of friends. On Android, SoberScroll is being built to block feeds like Reels, Shorts and Explore while DMs keep working, and there is an optional partner who approves early unlocks by email. Until it ships, a good compromise is the browser: block the app, keep the site open only on your laptop for groups and events, and set a small limit there.

What is a good setup to start with today?

Here is a version that takes about 15 minutes.

  1. On your phone, set an app limit or timer on Facebook and Messenger with the block turned on. Add facebook.com as a website limit on iPhone.
  2. On iPhone, have someone you trust set the Screen Time passcode, so you never see it.
  3. On your laptop, add the hosts file lines above and flush the cache.
  4. Delete the Facebook app if you can live without it. Keep the website for the one thing you actually need.
  5. Check in a week. If you found a workaround, close it right then.

A block that is easy to switch off will be switched off. Make the rules once, when you feel good, and make them hard to undo when you don’t.

Common questions

Can I block Facebook without deleting my account?

Yes. Block the app and the website on your own devices instead. On iPhone use Screen Time. On Android use Digital Wellbeing. On a computer use a hosts file entry or a browser blocker. Your account, friends and photos stay exactly as they are.

What is the difference between blocking Facebook and deactivating it?

Blocking only stops one device from opening Facebook. Your account stays active and other devices still work. Deactivating hides your profile from other people until you log in again. Deactivating does not stop you from logging back in, so it is a break, not a lock.

Why can I still open Facebook after I blocked the app?

Most likely you can still reach facebook.com in a browser, or you know the Screen Time passcode, or you have another device. A real block has to cover the app, the website and every browser on every device you use.

Does blocking Facebook also block Messenger?

Not automatically. Messenger is a separate app, and messenger.com is a separate website. Decide whether you need it for work or family, then block it or leave it. Blocking only the Facebook app is a common reason people feel the block did not work.

Can I block Facebook on my phone and laptop at the same time?

Not with the free built-in tools. Each device has its own settings, so you repeat the setup on every one. Screen Time can share limits across Apple devices if you turn on sharing, but Android, Windows and Linux are all separate.

One blocker for every device

We're building SoberScroll to block Reels, Shorts, apps and adult sites on Android, iPhone, Windows and Mac, with a strict mode that holds. Join the waitlist for the launch price.

Launch price for the waitlist. One email when the beta opens, nothing else.

More guides