Free. No account. Collects nothing about you.

Dangerous sites and ads are stopped inside your phone.

Guard for Android blocks known dangerous sites and ads in every app on your phone, on any network: at home, on mobile data and on café Wi-Fi. The filtering happens on the phone itself. The app also refuses connections to known dangerous addresses on the internet (IP addresses). It is free and needs no account.

Early version. The first release is out. Get it below, and please write if something does not work.

An example: three DNS lookups, where the phone asks for a site's address
  • nyheder.exampleLet through
    Passed on to the network's DNS server, which finds the address. The site opens as normal.
  • reklame.exampleBlocked
    The app gives an empty answer. The ad is never loaded.
  • svindel.exampleBlocked
    The app gives an empty answer. The site does not open.

What makes it different

The app blocks in two ways, for every app on the phone and on any network. The name filter stops known dangerous sites and ads. Address blocking refuses connections to known dangerous addresses.

  • Dangerous addresses too

    Some malicious software skips the name lookup and goes straight to an address, so a name filter alone cannot stop it. The app refuses connections to addresses on public lists of known dangerous addresses, such as criminal networks and botnet servers. Only DNS lookups and those connections pass through the app. The rest of your traffic never does.

  • It names the app

    When a connection is refused, a notification tells you which app tried, when Android can say, for example "Chrome tried to connect to …". The Recent blocks list on the screen shows what each app tried to reach, so you can find an app that keeps trying.

  • It does not stop silently

    If protection stops without your asking, a notification says that DNS lookups are no longer filtered. If an Android setting would cut the phone off from the internet, the app stops and explains why. If you turn off the app's notifications, the screen reminds you that it cannot tell you.

  • Encrypted lookups stay encrypted

    Lookups that are not blocked are sent on by Android itself. If Android encrypts your lookups (Private DNS on Automatic, when the network supports it), they stay encrypted.

  • Nothing to set up

    One button and no lists to choose. Games, news apps and browsers are filtered the same way, at home, on mobile data or on hotel Wi-Fi.

  • Where the lists come from

    The names come from AdGuard's DNS filter, which is inside the app. The address lists are downloaded to the phone itself, straight from their publishers, about once a day while protection runs. The publishers can see the phone's IP address. Read about it in the privacy policy.

Good to know

  • The app collects no information about you. No account, no tracking, no analytics, and the app shows no ads.
  • The filtering happens on the phone. There is no Cocode server, and the app does not send your traffic through a VPN server, as an ordinary VPN does.
  • Only DNS lookups and connections to known dangerous addresses pass through the app. A DNS lookup is when the phone asks where a site is. The rest of your traffic, such as web pages, video and app data, goes out as before.
  • DNS lookups that are not blocked go only to the network's own DNS server, as before.
  • Lists of dangerous addresses are downloaded straight from their publishers. They can see the phone's IP address, as any website can when you visit it. An IP address is the number your connection has on the internet.
  • You grant only two permissions: to use Android's VPN feature and to show notifications. The app has no access to contacts, location or files.
  • Free of charge and free software under the GPL-3.0 licence. Anyone can read, change and share the code.
  • Made for TalkBack, Android's screen reader, and for large text.

Read the full privacy policy

How it works

Here is what happens when you open a site.

  1. The phone looks up a site's address

    Every site has a name, such as nyheder.example. Computers use addresses, which are numbers (IP addresses). Before an app can open a site, the phone has to find the address that belongs to the name. This is called a DNS lookup. The phone asks a DNS server, a bit like looking a number up in a phone book.

  2. The app sees the lookup first

    The lookup passes through the app first, inside the phone. If the name is on the block list, the app gives an empty answer. The phone then does not know where the site is, so the site does not open.

  3. The rest is passed on

    Every other lookup goes on to the network's own DNS server, and the site opens as usual.

And dangerous addresses?

Some apps and some malicious software do not ask for a name, but go straight to an address. So the app downloads lists of known dangerous addresses while protection runs. If an app tries to connect to an address on the lists, the app refuses the connection at once, inside the phone. Nothing is sent to that address. A notification tells you which app tried and which address it was. All other connections go around the app.

Why does the app ask for VPN permission?

Android's VPN feature is how an ordinary app can see DNS lookups. An ordinary VPN sends your traffic to a server somewhere else. This app does not. It uses the feature only as a local tunnel that starts and ends inside the app itself, and there is no VPN server. Only DNS lookups and connections to addresses on the lists go through the tunnel. The rest of your traffic does not. The first time you tap Start protection, Android asks whether the app may use the VPN feature. If you say no, the app cannot start protection. While protection runs, Android shows a key icon. It is Android's own icon and does not mean there is a VPN server.

What the app cannot do

Here are the limits, so you can judge whether the app suits you.

  • Private DNS must be Automatic or Off

    Private DNS is an Android setting. Where it is depends on the phone; on Samsung phones it is under Connections. If it is set to Automatic or Off, the app works and you need to do nothing. If it is set to a specific server (a host name), the app cannot be used. The phone would not reach the internet while protection runs. So the app stops protection and tells you with a notification. The app's screen then has a button, Open network settings, where you can change the setting. Afterwards, tap Start again.

  • Apps with their own secure DNS bypass the name filter

    Some apps and browsers look sites up in their own encrypted way, for example a browser's secure DNS (DoH) setting. The app cannot see those lookups, so it cannot block them.

  • One VPN at a time

    Android allows only one VPN-type app at a time, so a work VPN cannot run alongside Guard for Android. Android's “Block connections without VPN” setting cannot be used with the app either. The app sends only DNS lookups and connections to dangerous addresses through its tunnel, so the phone would not be able to reach the internet. If the setting is on, protection cannot run, and the app says so.

  • No list catches everything

    The app blocks what is on the lists. A new dangerous site or address can slip through, and a harmless site can be blocked by mistake.

  • Address blocking needs fresh lists

    The app downloads the address lists when the phone is online. If a list is missing or is more than 7 days old, the app does not use it, because old lists can block addresses that other people use now. The screen tells you. Right after the first start, address blocking begins once the lists have downloaded. The name filter works regardless.

  • If protection stops, you are told

    If protection stops without you asking, the app sends a notification saying that DNS lookups are no longer filtered. This needs notifications from the app to be switched on. If they are off, the screen shows a warning about it. If you stop protection yourself with Stop protection, the screen says it has stopped.

The Cocode Guard box

The Cocode Guard box is a small box by the router that protects the whole home and writes to you on Telegram. Guard for Android is its companion: the box protects the house, and the app protects the phone when it leaves the house. You do not need the box to use the app.