Block apps and websites

The Firewall decides which apps may go online. It works with the VPN off, and it needs no plan.

Block an app

Settings › Apps

  1. Find the app with Search apps and tap it.
  2. Under Internet access, tap Blocked. There is no Save button.
  3. If the page says Firewall is off, so these rules aren’t applied, go to Home and turn the Firewall on.
  4. The first time, tap Continue, then OK on Android’s question.

The app still opens. YouTube, for example, says “You’re offline”.

Tap a row on the app’s page to see what it does.

The page of one app in Astrill, here YouTube, set to Blocked
Tap a rowSee what each setting does.
  1. Internet access Allowed, Wi-Fi only, Blocked or Custom.
  2. Details: Wi-Fi, mobile, roaming, background Separate switches for Wi-Fi, mobile data, roaming and background use.
  3. Mode Open only the sites you allow
  4. Rules for this app Block one site for this app only, or always allow one.
  5. Allow for a while Lets a blocked app online for 15 minutes, 1 hour or 8 hours. The block comes back by itself.
  6. Route Where this app’s traffic goes: through the VPN, around it, or nowhere. Where traffic goes
  7. Explain a connection See why this app is blocked, waiting or allowed. Fix a problem
  8. Recent connections What this app tried to reach, and what happened to each try. See what’s happening

Keep an app off mobile data

Settings › Apps › the app

  1. Under Internet access, tap Wi-Fi only.
  2. For finer control, open Details: Wi-Fi, mobile, roaming, background. Each has its own switch.

For several apps, see Save mobile data.

Block a website

Settings › Firewall › Website address rules

  1. Tap Add a website address. On an empty Firewall page, the way in is Block a website instead of Website address rules.
  2. Type the name, for example youtube.com. It covers m.youtube.com and the rest too.
  3. Leave Block selected and tap Block.
Website address rules with youtube.com blocked for all apps
The rule counts for every app on the phone.

An app and its website are two things. Block YouTube and youtube.com separately.

Block an address, or import a list

To block an address instead: Settings › Firewall › IP address and port rules, then Add an IP address or range. On an empty Firewall page, the way in is Block an address or port.

Both lists have Import in bulk. Tap a rule to edit it, or its bin to remove it.

Let an app open only some sites

Settings › Apps › the app › Mode

  1. Tap Mode, then Only allowed sites. With the Firewall on, the app can open only sites you always allow for it.
  2. Open Rules for this app, then Always allow a domain or IP.
  3. Type the site and tap Allow. Repeat for each site.

Pictures missing? Many sites load pictures from a second name. Recent connections on the app’s page shows which name was blocked, so you can allow it too.

Let a blocked app through for a while

Settings › Apps › the app › Allow for a while

  1. Choose 15 minutes, 1 hour or 8 hours.
  2. The row then shows the time left. Tap it to end it early.
A notification: YouTube, 17 connections blocked, with Allow 15 min and Show log
A blocked-app summary can offer Allow 15 min. Manage these in Notifications.

Pause Firewall rules

Settings › Help › Pause Firewall rules for 15 min

For 15 minutes, Firewall rules stop blocking. Routes and traffic waiting for a tunnel stay as they are. Tap the row again to resume sooner.

Rules for all apps

Settings › Firewall › Rules for all apps

Tap the switch to turn a rule on. Tap its name for Let through and Show all in Activity when offered. Open Advanced for more rules.

Here are the rules in the app’s words.

RuleWhat it does
Block while lockedApps go offline soon after the screen locks
Block unused appsApps not on screen go offline after a wait. Needs Usage access.
Block new installsNew apps stay offline until you allow them
Block all appsApps go offline unless you let them through
Six more rules, under Advanced
RuleWhat it does
Block unidentified connectionsConnections Android can’t link to an app
Block UDP trafficExcept DNS and time sync. Astrill and tunnel connections to their servers are exempt.
Block insecure HTTPUnencrypted web pages (port 80)
Block apps that skip Astrill DNSConnections to addresses not looked up through Astrill DNS. With a Private DNS provider set in Android, that’s most connections.
Block DNS from unknown appsLookups Android can’t link to an app
Block local network accessApps can’t reach devices on your network (printers, TVs, other phones), even with the VPN off.

Block all apps

Settings › Firewall › Rules for all apps › Block all apps

Turn it on and use Let through to choose which apps can go online. If asked Keep notifications working?, let the suggested app through to keep notifications arriving.

Keep new apps offline until you say so

Settings › Firewall › Rules for all apps › Block new installs

A newly installed app gets no internet. A notification asks Allow or Keep blocked. Until someone answers, it stays offline and waits under Waiting for your decision.

What to know about the Firewall

  • There is no PIN. See Kid’s phone.
  • There is no bedtime schedule.
  • Not the VPN. With only the Firewall on, Home says VPN off · your IP is visible.

Written for Astrill for Android 4.4, on Android 10 or later.