Guides · Published
How to block an app from the internet on Android
On stock Android you can limit an app’s background data, but the app can still connect while you use it. To take its internet away without root, use a firewall app that runs as Android’s VPN, or a system with a per-app network permission, such as GrapheneOS.
Whatever you use, test it. Ask the blocked app to load something new on Wi-Fi, then turn Wi-Fi off and try again on mobile data. Check that another app can still connect. A screen the app saved earlier can look as if it loaded, so make sure the content is new.
Android’s data settings
Apps get the INTERNET permission automatically, and stock Android’s permissions screen has no switch to take it back.
| Setting | What it does | Full block? |
|---|---|---|
| Background data, per app | Limits the app’s background traffic on metered connections | No. The app can still connect while you use it |
| Data Saver | Limits background traffic on metered connections for apps you haven’t exempted, and asks active apps to use less (Android docs) | No. Active apps can still connect |
| Samsung Allowed networks for apps | Mobile data or Wi-Fi, Wi-Fi only or Mobile data preferred per app (Samsung) | No. Wi-Fi only keeps the app off mobile data |
| GrapheneOS Network permission | Takes away the app’s network access (GrapheneOS) | Yes |
On a Pixel, Data Saver is under Settings, Network & internet, Data Saver (Pixel help). The background data switch is on the app’s data usage page in Android’s Settings. If your Galaxy phone has Allowed networks for apps, it’s under Settings, Connections, Data usage; Samsung says menus vary by model and carrier. If you can’t find a setting, search Settings for “data”.
How no-root firewalls work
Without root, an app can’t change Android’s firewall. It can use Android’s VPN feature instead. Android sends traffic from the apps it covers to the firewall, which drops what you blocked and forwards the rest.
NetGuard, Rethink and TrackerControl work this way. In NetGuard, for example, you turn the firewall on, find the app, and tap its Wi-Fi and mobile data icons to deny both. AFWall+ needs root and uses Linux’s own firewall instead, so it doesn’t use the VPN feature.
While it runs, Android shows the VPN key icon in the status bar, even when the firewall does all its filtering on the phone.
Using a firewall with a VPN
Android runs one VPN app per profile. If your firewall uses that slot, a separate VPN app can’t stay connected in the same profile. Why Android runs only one VPN at a time explains the rule.
Rethink and TrackerControl can filter traffic and send allowed connections through WireGuard. unbraid, a VPN client, can set an app or a website to Block.
A firewall that uses the VPN feature blocks nothing while it isn’t running. If it supports Always-on VPN, Android can start it again after a restart. Block connections without VPN keeps apps in that profile offline until it connects; check the firewall’s instructions before you turn it on (kill switch guide).
Block an app in unbraid
In unbraid, setting an app to Block takes it offline while unbraid is connected. You don’t need a VPN account for it: on a new install, tap Tailscale only under Other on Choose your VPN. You can leave Tailscale signed out. Your default route starts on Direct, so your other apps use your normal connection through unbraid, which carries IPv4 only.
- Open Apps. If unbraid asks, tap Show my apps, then Agree and continue. If the app came with the phone and isn’t listed, tap Show on the line under the filters that says how many system apps are hidden.
- Tap the app and choose Block. Do it in the profile you use. unbraid notes that the app can’t connect to anything while unbraid is connected and that paused or off, unbraid blocks nothing.
- Connect. If unbraid is off, tap the power button in Routes. The first time, tap Agree and continue under Before you connect and allow Android’s VPN request.
While unbraid is connected, it refuses the blocked app’s internet connections and name lookups. Apps that share its Android user ID are blocked with it. A separate setting decides whether blocked apps can still reach devices on your Wi-Fi. unbraid runs on 64-bit ARM phones with Android 13 or newer, and you can download unbraid for free.
To block a website, open Apps, switch to Websites, tap +, enter the domain under Address, choose Block and tap Add. That blocks the name and its subdomains when unbraid handles the lookup. An app outside unbraid, a browser using its own secure DNS, Android’s Private DNS set to a named server, or a connection made straight to an IP address can miss the rule.

Devices on your Wi-Fi
By default, blocked apps also lose access to devices on your own network, such as a printer, a TV or a NAS. The setting is Block the local network too, under Settings, Local & home access, and it starts on. While any app is blocked, local traffic from apps inside unbraid then goes through unbraid, so casting or printing may not find devices.
Block the local network too only shows while Local network bypasses the VPN is on. Turn it off to let blocked apps reach devices on the part of your network that bypasses unbraid. Android’s Block connections without VPN must be off for this to work. The same switch is on the Block row in Routes.
Limits
If two apps share an Android user ID, unbraid blocks them together, because Android reports their traffic as one. While any app is blocked, unbraid also drops pings and the connections it can’t match to an app, for traffic that passes through it.
Blocking stops the app’s own connections. The app still runs and keeps any permissions you gave it, such as location or camera. A link it opens in your browser uses the browser’s route.
Questions
Can I block an app on mobile data but allow it on Wi-Fi? In unbraid, with two saved profiles: set the app to Block in one and give it its usual route in the other. In Routes, tap Manage, and under Switch by itself choose a profile for On Wi-Fi and one for On mobile data. It switches while unbraid is connected, a few seconds after the network changes, and waits while unbraid is open on screen, so the app can use mobile data until the blocking profile takes over. A profile you pick by hand can stay in use until the network changes. Every Wi-Fi network counts the same. On a Galaxy phone, Allowed networks for apps set to Wi-Fi only is a separate way to do it.
How do I undo a block? Open the app in Apps and choose Follow default, or the route it had before.
Do I need a VPN account to block an app? No. Block works with Direct as the default route, as described above.
Bring your own VPN
unbraid is a VPN client with no servers of its own. You sign in with an account you already have, or add your own server. It has built-in support for AirVPN, ExpressVPN, IVPN, Mullvad, NordVPN (affiliate link), Private Internet Access, Proton VPN (Free included), Surfshark (affiliate link) and Windscribe. For CyberGhost, you import config files from your account, with step-by-step help in the app.
We earn a commission if you subscribe through a link marked (affiliate link). It helps keep unbraid free. If you're about to subscribe to a VPN service, thank you for considering doing it through one of them.