HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
M66B
NetGuard
Java2016–2026
M66B / NetGuard

NetGuard

A simple way to block access to the internet per app

53Distinct people
66Mentions
1Explicit recommenders
4KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A simple way to block access to the internet per app

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

While I didn't have microsoft apps on my S9, if you install netguard (firewall) [1] you'll see that most samsung apps are constantly trying to get a connection with facebook…

propogandist used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year66 dated mentions

Observed mentions: 2016-02-16 18:29:03 UTC to 2026-10-11 08:43:53 UTC.

02468102016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 6 mentions; 1 submissions, 5 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 10 mentions; 0 submissions, 10 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 10 mentions; 0 submissions, 10 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 7 mentions; 0 submissions, 7 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 8 mentions; 2 submissions, 6 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 6 mentions; 0 submissions, 6 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC615
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC505
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC10010
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC10010
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC707
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC303
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC826
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC312
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC606
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC404
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC404

From the project README

An excerpt from the repository, fetched Nov 13, 2026.

Read the project’s introduction
NetGuard NetGuard provides simple and advanced ways to block access to the internet - no root required. Applications and addresses can individually be allowed or denied access to your Wi-Fi and/or mobile connection. WARNING: there is an app in the Samsung Galaxy app store "Play Music - MP3 Music player" with the same package name as NetGuard, which will be installed as update without your confirmation. This app is probably malicious and was reported to Samsung on December 8, 2021. Blocking access to the internet can help: reduce your data usage save your battery increase your privacy NetGuard is the first free and open source no-root firewall for Android. Features: Simple to use No root required 100% open source No calling home No tracking or analytics Actively developed and supported Android 5.1 and later supported IPv4/IPv6 TCP/UDP supported Tethering supported Optionally allow when screen on Optionally block when roaming Optionally block system applications Optionally forward ports, also to external addresses (not available if installed from the Play store) Optionally notify when an application accesses the internet Optionally record network usage per application per address Optionally block ads using a hosts file (not available if installed from the Play store) Material design theme with light and dark theme PRO features: Log all outgoing traffic; search and filter access attempts; export PCAP files to analyze traffic Allow/block individual addresses per application New application notifications; configure NetGuard directly from the notification Display network speed graph in a status bar notification Select from five additional themes in both light and dark version There is no other no-root firewall offering all these features. Requirements: Android 5.1 or later A compatible device Downloads: GitHub Google Play Certificate fingerprints: MD5: B6:4A:E8:08:1C:3C:9C:19:D6:9E:29:00:46:89:DA:73 SHA1: EF:46:F8:13:D2:C8:A0:64:D7:2C:93:6B:9B:96:D1:CC:CC:98:93:78 SHA256: E4:A2:60:A2:DC:E7:B7:AF:23:EE:91:9C:48:9E:15:FD:01:02:B9:3F:9E:7C:9D:82:B0:9C:0B:39:50:00:E4:D4 Usage: Enable the firewall using the switch in the action bar Allow/deny Wi-Fi/mobile internet access using the icons along the right side of the application list You can use the settings menu to change from blacklist mode (allow all in Settings but block unwanted applications in list) to whitelist mode (block all in Settings but allow favorite applications in list). Red/orange/yellow/amber = internet access denied Teal/blue/purple/grey = internet access allowed For more screenshots, see here. Compatibility The only way to build a no-root firewall on Android is to use the Android VPN service. Android doesn't allow chaining of VPN services, so you cannot use NetGuard together with other VPN based applications. See also this FAQ. NetGuard can be used on rooted devices too and even offers more features than most root firewalls. Some older Android versions, especially Samsung's Android versions, have a buggy VPN implementation, which results in Android refusing to start the VPN service in certain circumstances, like when there is no internet connectivity yet (when starting up your device) or when incorrectly requiring manual approval of the VPN service again (when starting up your device). NetGuard will try to workaround this and remove the error message when it succeeds, else you are out of luck. Some LineageOS versions have a broken Android VPN implementation, causing all traffic to be blocked, please see this FAQ for more information. On GrapheneOS, the Android Always-On VPN function and the sub option 'Block connections without VPN' are enabled by default. However, this sub option will result in blocking all traffic, please see this FAQ. NetGuard is not supported for apps installed in a work profile, or in a Secure Folder (Samsung), or as second instance (MIUI), or as Parallel app (OnePlus), or as Xiaomi dual app because the Android VPN service too often does not work correctly in this situation, which can't be fixed by NetGuard. NetGuard is not supported for internet connections via a wire, like ethernet or USB, because the Android VPN service often doesn't work properly in this situation. Filtering mode cannot be used on CopperheadOS. NetGuard will not work or crash when the package com.android.vpndialogs has been removed or otherwise is unavailable. Removing this package is possible with root permissions only. If you disable this package, you can enable it with this command again: adb shell pm enable --user 0 com.android.vpndialogs NetGuard is supported on phones and tablets with a true-color screen only, so not for other device types like on a television or in a car. Android does not allow incoming connections (not the same as incoming traffic) and the Android VPN service has no support for this either. Therefore managing incoming connections for servers running on your device is not supported. Wi-Fi or IP calling will not work if your provider uses IPsec to encrypt your phone calls, SMS messages and/or MMS messages, unless there was made an exception in NetGuard for your provider (currently for T-Mobile and Verizon). I am happy to add exceptions for other providers, but I need the MCC codes, MNC codes and IP address ranges your provider is using. As an alternative you can enable the option 'Disable on call', which is available since version 2.113. Frequently Asked Questions (FAQ) (0) How do I use NetGuard? (1) Can NetGuard completely protect my privacy? (2) Can I use another VPN application while using NetGuard? (3) Can I use NetGuard on any Android version? (4) Will NetGuard use extra battery power? (6) Will NetGuard send my internet traffic to an external (VPN) server? (7) Why are applications without internet permission shown? (8) What do I need to enable for the Google Play™ store app to work? (9) Why is the VPN service being restarted? (10) Will you provide a Tasker plug-in? (13) How c
Read the full README on GitHub

What Hacker News says

66 sources
Sigh, that's a lot of words to describe DNS based adblocking. In Android you can either set your DNS server in the system settings or via the VPN API. Sample code here https://github.com/t895/DNSNet/blob/a-couple-updates/service... They both do the same thing. There are local device-only resolver apps like https://rethinkdns.com/ https://github.com/m66b/netguard Another famous one is DNS66 but it's sadly unmaintained. Avoid apps with the word "ad" in their name, they are usually semi commercial and can't be trusted. Do note all of these methods can be overridden on the app level e.g. a lot of browsers come bundled with first party VPNs or use their own built-in resolvers. If you want something more reliable, Firefox on Android with the UBlock Origin and Sponsorblock extensions is still the gold standard. Though do note the Android Firefox
Read the rest
is extremely slow compared to the Chromium based browsers. For app level ads, use an app patcher like https://github.com/morpheapp which can remove all in-app advertisements and inject sponsor blocking code.
In System-level ad-blocking in Android
I was able to confirm that NetGuard actually uses the IPinfo API. See https://github.com/M66B/NetGuard/blob/master/FAQ.md#:~:text=... and https://github.com/M66B/NetGuard/blob/31652781967a70efaee2eb.... I agree that it would be a more privacy-friendly solution for them to host their own API, but that got me thinking, wouldn't it be possible to just let users download the IPinfo data and use it locally? Does IPinfo offer database downloads? That's also how the Server-Status Firefox extension (https://github.com/tdulcet/Server-Status) works (but it doesn't use IPinfo). Also asking for potential personal use: How does the quality of IPinfo data compare to MaxMind, DB-IP, etc?
In Graphene OS: a security-enhanced Android build
I agree, I was using K9 until FairMail came out. It has all the features from K-9, it is open source and from very reliable developer which I trust more than Mozilla with its fishy additions to firefox (author of NetGuard (https://github.com/M66B/NetGuard ) which is the first software I install on any new phone. Firefox is the second, FairMail is the third). I can only wish all the software would be of this quality, congrats M66B.
In K-9 Mail is poised to be Thunderbird for Android

Showing the 15 most recent of 66 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.