Privacy and security
How to Block an App's Internet Access on Android Without Root
By the llcloud team 5 min read
Quick answer
Repel blocks any app from the internet with one switch, on Wi-Fi and mobile data, without root. Its firewall does not use Android's VPN slot, so your own VPN stays connected, and rules hold with Repel closed. It needs Android 13 or newer and a one-time pairing through Wireless debugging on the phone. Built-in settings mostly limit mobile or background data only.
Some apps have no reason to go online. A calculator, a photo editor, a game you play on the train. Others you want offline on mobile data, or at night. Android does not give you one simple switch for this, and what it does give you changes from phone to phone. This guide walks through the built-in settings on Pixel, Samsung and Xiaomi, how to check that a block really works, and how Repel blocks any app with one switch without touching your VPN.
Can Android block an app from the internet on its own?
Partly. Stock Android can stop an app using mobile data in the background, and Data Saver limits background data for most apps. Neither stops an app you have open, and neither covers Wi-Fi on every phone. Some skins, such as Xiaomi's, add a real per-app Wi-Fi and mobile data switch. Samsung's One UI does not.
Pixel and stock Android
- Open Settings > Apps > See all apps and tap the app.
- Tap Mobile data & Wi-Fi.
- Turn off Background data.
The app can no longer use mobile data in the background, but it can still go online the moment you open it. On some phones this screen also has separate Wi-Fi and mobile data switches. If yours does, turning both off blocks the app fully.
For a wider limit, Settings > Network & internet > Data Saver lets most apps use background data only over Wi-Fi. You can exempt apps under Unrestricted data. Google's own help page says active apps can still use mobile data while it is on.
Samsung Galaxy
- Open Settings > Connections > Data usage > Allowed networks for apps.
- Tap the app and choose Wi-Fi only. That keeps it off mobile data.
- For background use, go to Settings > Connections > Data usage > Mobile data usage, tap the app and turn off Allow background data usage.
Samsung's support page lists only Mobile data or Wi-Fi, Wi-Fi only, and Mobile data preferred. There is no option that blocks both networks for one app, which Samsung Community members have asked for repeatedly.
Xiaomi, Redmi and POCO
- Open Settings > Apps > Manage apps and tap the app.
- Tap Restrict data usage.
- Untick Wi-Fi and Mobile data.
That is a full block on most HyperOS and MIUI versions. The wording differs by version, and some updates have reset these choices, so check them again after a system update. Xiaomi's battery management can also cause odd behaviour for privacy apps, covered in stopping Xiaomi killing apps.
How do I check that the block really works?
Turn off Wi-Fi and mobile data in turn and open the app. A blocked app should show its offline message on both. Test it in the foreground too, because background data limits only apply when the app is closed. If the app still loads new content, the block is partial.
How does Repel block an app's internet access?
Repel switches networking off for that app at the system level, on Wi-Fi and mobile data, whether the app is open or not. Open the Apps tab and turn the app off. That is the whole job once setup is done.
Android only lets its own developer tools switch an app's network access, so Repel sets up a small built-in helper once. You turn on Wireless debugging and pair Repel with the code Android shows you on the phone. No computer, no root and no other apps are needed. The firewall needs Android 13 or newer.
What makes it different from most firewall apps:
- It does not use the VPN slot. Android allows one active VPN service at a time. Firewalls built on that service, such as NetGuard and RethinkDNS, stop when you connect your own VPN. Repel's firewall never touches it, so your VPN stays connected.
- Rules hold with Repel closed. The block lives in Android's network rules, so it survives Repel not running.
- It is free. The app firewall is part of the free version.
- Smarter rules in Pro. Online only on Wi-Fi, only on mobile data, never while roaming, with the screen off or at bedtime, with Home, Work and Travel profiles. Pro is a one-time purchase.
You can also go the other way. In Repel's activity log, tap a lookup to cut the app that made it off the internet. With Pro, per-app domain rules let an app reach only the domains you list, which is useful when an app needs one server but calls ten.
Our post on how Repel keeps your VPN slot free explains the helper in more detail.
Which option should you use?
Repel, because it is the only option here that blocks an app fully on every phone and keeps your VPN running.
| Repel firewall | Background data off | Samsung Wi-Fi only | Xiaomi Restrict data usage | |
|---|---|---|---|---|
| Blocks Wi-Fi | ✓ | ✗ on many phones | ✗ | ✓ |
| Blocks mobile data | ✓ | Background only | ✓ | ✓ |
| Blocks while the app is open | ✓ | ✗ | ✓ | ✓ |
| Works on any brand | ✓ (Android 13+) | ✓ | Samsung only | Xiaomi only |
| Leaves the VPN slot free | ✓ | ✓ | ✓ | ✓ |
| Wi-Fi only, roaming, bedtime rules | ✓ (Pro) | ✗ | Wi-Fi only | ✗ |
| See which domains an app looks up | ✓ | ✗ | ✗ | ✗ |
Want to stop ad and tracker domains in apps you still let online? See how to block ads and trackers in apps. Running a VPN all day? Read blocking trackers without a VPN. On Samsung, check stopping Samsung killing apps so nothing switches off behind your back. For a side-by-side, see Repel vs NetGuard and Repel vs RethinkDNS.
Sources
Questions
Can I block an app from the internet on Android without root?
Yes. Repel's app firewall does it with one switch per app, on Wi-Fi and mobile data, without root and without a computer. It needs Android 13 or newer and a one-time pairing through Wireless debugging, using the code Android shows on the phone. Some phones, such as Xiaomi, also have a built-in per-app Wi-Fi and mobile data switch.
Does turning off background data block an app completely?
No. Background data stops an app using mobile data while you are not using it. Once you open the app, it can go online again, and on many phones Wi-Fi is not affected at all. To stop an app going online in the foreground and on Wi-Fi too, you need a full block, which is what Repel's firewall does.
How do I block an app's internet on Samsung?
One UI can limit an app to Wi-Fi only under Settings > Connections > Data usage > Allowed networks for apps, and can turn off its background data. It has no built-in switch that blocks both Wi-Fi and mobile data for one app. Repel's firewall adds that, with no root, and leaves the VPN slot free.
Can I use a firewall and a VPN at the same time?
With Repel, yes. Android allows only one active VPN service at a time, which is why most no-root firewalls, built on that service, stop when you connect your VPN. Repel's firewall uses Android's own network controls instead, through a small helper set up once over Wireless debugging, so your VPN stays connected.
Do firewall rules stay on after I close the app?
Yes. Repel's block lives in Android's own network rules, not in a tunnel the app has to keep open, so it stays in place with Repel closed. If you want smarter rules, Pro adds online only on Wi-Fi, only on mobile data, never while roaming, with the screen off or at bedtime, plus Home, Work and Travel profiles.