If a fixed nighttime boundary fits your routine, you can download 9to9 from the App Store and choose the apps and websites you want quiet from 9 PM to 9 AM.

X is unusually good at making late-night scrolling feel responsible.

TikTok can feel like entertainment. Instagram can feel like procrastination. X can feel like keeping up.

There is always one more breaking story, one more reply, one more argument, one more person explaining why the thing you were about to sleep through is apparently the most important event of the decade.

That makes X a slightly different nighttime habit. You are not only fighting boredom. You are fighting the feeling that closing the app means becoming uninformed.

If you want to block X at night on your iPhone, there are two good approaches:

  1. Use Apple’s built-in Screen Time controls.
  2. Use an automatic nightly blocker such as 9to9 if you want the same rule every night without maintaining a custom Screen Time setup.

The important part is to block both the X app and x.com if Safari is your usual escape hatch.

Method 1: block X with Apple Screen Time

Apple gives you native controls for deciding when apps are available. The exact labels depend on which iOS version you are running.

On iOS 27

Apple redesigned Screen Time around Screen Time Schedule and Time Allowances.

Go to:

Settings → Screen Time

Then:

  1. Turn on App & Website Activity if it is not already enabled.
  2. Open Screen Time Schedule.
  3. Create a schedule for the hours you want distracting apps unavailable.
  4. Use Time Allowances to control categories such as Social Media, or create/select the relevant category containing X.
  5. Check Always Allowed and make sure X is not included there.

Apple says Screen Time schedules can define windows for different parts of your day, and Time Allowances can be attached to categories during those windows.

On iOS 26 and earlier Screen Time layouts

You may still see the older Downtime and App Limits controls.

A common setup is:

  1. Open Settings → Screen Time.
  2. Open Downtime and schedule the nighttime period you want.
  3. Make sure blocking at downtime is enabled if your version shows that option.
  4. Open Always Allowed and remove X if it appears there.
  5. Optionally add an App Limit for X during the day as a separate layer.

Apple has changed the Screen Time interface over time, so do not worry if your Settings screen does not match a screenshot from a 2023 tutorial. The goal is the same: define a period when X is not available and make sure X is not exempted.

Apple’s current Screen Time guide: Set Screen Time schedules and time allowances.

Do not forget x.com in Safari

This is the part that makes many “I blocked Twitter” setups fail.

You block the X app. Ten minutes later, muscle memory opens Safari and types x.com.

Your brain does not care whether the feed arrived through an app icon or a browser tab.

If you genuinely want a nighttime X boundary, treat the website as part of the same product.

Apple lets you block specific websites with Screen Time:

Settings → Screen Time → Content & Privacy Restrictions → App Store, Media, Web & Games → Web Content

From there, Apple provides an option to add specific URLs to a “Never Allow” list when using the relevant web-content restriction mode.

You can add:

  • x.com
  • twitter.com if you still encounter old links or redirects

Apple’s current guide: Block apps, downloads, websites, and purchases on iPhone.

If you use another browser, test your setup rather than assuming Safari-specific behavior covers every route you use.

Why X is especially hard to stop at night

The problem is not simply that the feed is infinite.

X combines several things that make stopping feel irrational in the moment:

1. News creates fake urgency

A video of someone reorganizing a kitchen can wait until tomorrow and your brain knows it.

A post labeled “BREAKING” asks a different question: what if something important is happening right now?

The answer is usually that the important thing will still exist in the morning.

But the feed makes every update feel perishable.

2. Arguments have no natural ending

You see a bad take. You read the quote-posts. Someone makes a good counterargument. Someone else makes a terrible counter-counterargument. You check the original poster’s profile. Now you are reading something from three days ago.

There is no episode ending or chapter break.

3. X can disguise stimulation as information

You may sincerely be learning things. That does not mean midnight is the best time to keep loading new information into your head.

The useful question is not “is this content worthless?”

It is “does this need to enter my brain right now?”

For most news, commentary, and discourse, the answer at 12:18 AM is no.

Why manual Screen Time can still fail

Apple’s built-in controls are capable. The failure usually happens around the controls rather than inside them.

Common loopholes include:

  • X is accidentally left in Always Allowed.
  • The app is limited but the website is not.
  • The limit can be ignored too easily in the version/settings you use.
  • You repeatedly edit the rule when you are already tired.
  • You create a schedule that is so complicated you stop maintaining it.

If that sounds familiar, read how to stop ignoring Screen Time limits.

The important distinction is between a tool problem and a decision problem.

If Screen Time technically works but you keep changing the decision, adding another minute counter may not help.

Method 2: make X unavailable automatically every night with 9to9

9to9 is built for a narrower use case than Apple Screen Time.

Its rule is fixed:

9 PM → selected apps and websites are blocked
9 AM → they return automatically

You can select X and the X website during setup. Once configured, there is no nightly schedule to start and no bedtime decision about whether today “really counts.”

Calls, texts, alarms, and anything you did not choose to block continue to work.

If you genuinely need X during the blocked window, 9to9 provides Temporary Access: after a 60-second pause, you get five minutes before the block returns.

That makes it possible to handle an exception without converting the exception into unlimited access for the rest of the night.

The fixed schedule is either the best part of 9to9 or the reason not to use it.

If 9 PM–9 AM matches your life, there is almost nothing to configure.

If you need custom hours, Apple Screen Time, ScreenZen, Freedom, or another configurable blocker will fit better.

What still works if X is blocked?

Blocking X does not mean turning off your iPhone.

With a selective blocker such as 9to9, anything you do not select remains available. That can include:

  • Phone
  • Messages
  • alarms
  • Maps
  • music or podcasts
  • books
  • your camera
  • work apps you genuinely need
  • emergency services

That matters because “I need my phone available” and “I need X available” are not the same statement.

You can keep the useful parts of the device while removing the one feed that reliably turns bedtime into another hour online.

But what if something important happens overnight?

This is the strongest emotional argument X makes for itself.

For most people, you do not need an algorithmic feed to be your emergency alert system.

If there is a person who may genuinely need you overnight, configure your iPhone around that person, not around the entire internet.

Apple Focus lets you allow notifications and calls from selected contacts. It can also allow repeated calls — two or more calls from the same person within three minutes — and Emergency Bypass can let specific emergency contacts through even when notifications are silenced.

That gives you a cleaner rule:

People who matter can reach me. The feed cannot recruit me.

See how to silence notifications at night without missing what matters.

Should I delete X instead?

If you do not want X at all, yes. Deleting the app is simpler than building a sophisticated system around not opening it.

But deletion is not the same goal as nighttime blocking.

You may use X professionally. You may follow niche communities that are genuinely valuable. You may like the platform during the day and dislike who you become with it in bed.

In that case, the useful boundary is temporal rather than absolute:

X can exist in my life. It just does not need to exist in my night.

Should I use a daily app limit instead of a nighttime block?

They solve different problems.

A daily limit says: you can use X for N minutes today.

A nighttime block says: you can use X, just not now.

If your main issue is total usage, a daily limit can be useful.

If your main issue is sleep displacement and late-night doomscrolling, a clock-based boundary is often easier to understand because it does not matter whether you used X for five minutes or fifty minutes earlier in the day.

The night rule remains the night rule.

For a deeper comparison, see app blocker vs. app timer.

Can I still receive X DMs if the app is blocked?

If the app itself is unavailable, you should assume you cannot reliably open and respond to DMs through that blocked route until access returns or you deliberately use an exception.

If someone needs to be able to reach you urgently at night, move that communication to Phone, Messages, or another channel you intentionally leave available.

A social network is a poor emergency system precisely because urgent and non-urgent content arrive through the same door.

A good nighttime setup is boring

The best setup is not the one with the most clever restrictions.

It is the one you stop noticing.

A useful version might be:

  • Sleep Focus silences nonessential notifications.
  • X and x.com are unavailable during your chosen nighttime window.
  • Messages and calls from important people remain available.
  • You charge the phone somewhere that is not directly in your hand.
  • You stop reopening the debate every night.

If you want the X block to be automatic from 9 PM to 9 AM, you can try 9to9 free for 7 days. After the trial it is $19.99/year unless canceled before renewal.

The internet will still be angry in the morning.

Troubleshooting: X is still opening during your Screen Time schedule

If you set up Screen Time and X still seems accessible, check the boring things before assuming the feature is broken.

Check Always Allowed

Open Settings → Screen Time → Always Allowed and make sure X is not included as an allowed app during your scheduled restriction.

An app can be inside a restricted category while also being explicitly allowed. The explicit exception wins.

Check the actual schedule

If you use the current Screen Time Schedule interface, confirm that the restriction covers the correct days and hours. On older layouts using Downtime, make sure Downtime is enabled and that blocking during the scheduled period is actually turned on.

A schedule that begins at 11 PM will not save you from a 10:40 PM doomscroll.

Check Safari and other browsers

Blocking the X app does not automatically mean every route to x.com is gone. If you routinely switch to Safari, Chrome, or another browser, add the website restriction too.

This is one of the most common reasons a technically correct app block does not change the habit.

Check alternate clients

If you use a third-party X client or another app that surfaces the same feed, decide whether that belongs in the boundary as well.

You are trying to block the behavior, not win a game of app-name whack-a-mole.

What about notifications from X?

A nighttime app block and a notification policy solve two different problems.

If X notifications are still lighting up the lock screen, use Focus or X's own notification settings to quiet them. Otherwise the app can remain “blocked” while still repeatedly reminding you what you are missing.

A useful combination is:

  • Sleep Focus silences nonessential X notifications;
  • Screen Time or 9to9 handles access;
  • important calls and messages stay available.

This avoids the all-or-nothing feeling of putting the entire phone into airplane mode.

For a full setup, see How to Silence Notifications at Night Without Missing What Matters.

A better way to handle genuinely important news

If your main justification for nighttime X is “what if something important happens?”, build a more selective information channel.

You might allow:

  • emergency alerts from iOS;
  • calls and messages from family;
  • notifications from one trusted news app;
  • weather alerts;
  • work communication only if you are actually on call.

Then block the infinite feed.

This separates being reachable from being continuously exposed to everybody's reaction to everything.

In a real emergency, the most useful information usually does not depend on you refreshing For You every 90 seconds.

What if you use X for work?

This is the strongest reason not to apply a simplistic “delete the app” solution.

Journalists, founders, marketers, developers, customer-support teams, and creators may have legitimate reasons to use X. The problem may not be the platform itself. It may be that work use has leaked into the last hour of the day.

Try a temporal boundary instead:

  • use X normally during working hours;
  • finish replies and scheduled posts before your cutoff;
  • allow direct contact through another channel for truly urgent issues;
  • make the feed unavailable during the period you repeatedly regret using it.

That approach treats X like work email: useful, sometimes necessary, and not automatically entitled to your attention at midnight.

Frequently asked questions

Can I block X every night but still use it during the day?

Yes. That is exactly what a scheduled Screen Time restriction or 9to9 is designed to do. You do not need to choose between unrestricted 24/7 access and deleting the app entirely.

Can I block x.com without blocking all of Safari?

Yes. iOS Screen Time includes web-content restrictions that can prevent specific sites from loading. The exact menu path can vary by iOS version, so use Apple's current Web Content controls rather than blocking the entire browser unless that is what you want.

Will an X block stop emergency alerts?

No. Blocking the X app is not the same as turning off the iPhone. Government emergency alerts, calls, texts, alarms, and other services are controlled separately.

What if I need X for a five-minute task after 9 PM?

With Apple Screen Time, whether you can override the restriction depends on how you configured it. With 9to9, Temporary Access provides five minutes after a 60-second pause. If nightly work access is routine rather than exceptional, a fixed 9–9 product may not be the right setup for you.

Is blocking X at night overkill?

Only if X is not actually a problem for you. The goal is not to make your phone artificially difficult to use. Block the smallest set of apps that repeatedly take time you intended to spend differently.

Try measuring one thing for a week

Do not judge the setup by whether you “felt disciplined.”

Check one concrete outcome: what time did you actually stop using the phone?

If X usually keeps you up until 12:30 and the block moves your last meaningful phone use to 11:20, that is useful. If you simply replace it with YouTube until 12:30, you have found the next loophole.

The goal is not to defeat one logo. It is to protect the part of the night you meant to keep.

What if you replace X with another feed?

This is the most useful failure mode to notice.

You block X at 9 PM. At 9:04 you open Reddit. Then YouTube. Then a news app. The X block technically worked, but the behavior did not change.

Do not interpret that as proof that blockers are useless. Interpret it as evidence that X was not the whole habit.

Add only the apps that participate in the same late-night loop. Keep practical and intentional apps available. The point is not to make the phone unusable; it is to remove the set of infinite feeds that are interchangeable for you at bedtime.

If every blocked app immediately produces a new workaround, it may also help to move the phone physically away from the bed. Software friction works better when the device itself is not already in your hand.

Do you need to block X forever?

Probably not. A nighttime block is useful precisely because it lets the app remain useful during the part of the day when you actually want it. You can read news, post, reply, and follow your communities without also giving the feed access to the hour you intended to sleep.

If the problem disappears after a few weeks, you can loosen the rule. A digital boundary does not have to become a permanent identity.

The feed will still be there in the morning, along with the arguments, updates, jokes, breaking stories, and replies. Very little is lost by making them wait for a defined part of the day. The thing you are protecting is not ignorance; it is an ending.

That is a much smaller and more realistic goal than trying to become permanently uninterested in news.

Sources and further reading