System-Wide Ad Blocking on Windows β Firewall, DNS, Hosts, Apps
Free apps showing ads? Kill the revenue stream. Hereβs how.
Many βfreeβ apps donβt need internet to function β they just need it to show you ads. Block that connection = ad-free experience. For apps that DO need internet, use DNS-level blocking or system-wide ad blockers.
π₯ Method 1: Windows Firewall (Best for Offline Apps)
Works on: Apps that donβt need internet to function (media players, PDF readers, utilities)
| Step | Action |
|---|---|
| 1 | Win + S β type βWindows Defender Firewallβ β Open |
| 2 | Click Advanced settings (left sidebar) |
| 3 | Click Outbound Rules β New Ruleβ¦ (right sidebar) |
| 4 | Select Program β Next |
| 5 | Browse to appβs .exe file β Next |
| 6 | Select Block the connection β Next |
| 7 | Check all boxes (Domain, Private, Public) β Next |
| 8 | Name it (e.g., βBlock WPS Adsβ) β Finish |
Repeat for Inbound Rules if needed (same steps, different sidebar).
Find the .exe: Right-click app shortcut β Properties β copy Target path
Common ad-showing apps to block:
- uTorrent, BitTorrent clients
- WPS Office, LibreOffice alternatives
- Media players (GOM, VLC knockoffs)
- PDF readers, screenshot tools
- Printer software (Epson, HP, Canon)
π Method 2: Hosts File Blocking (System-Wide)
How it works: Redirect ad domains to nowhere (0.0.0.0)
Location: C:\Windows\System32\drivers\etc\hosts
Quick setup:
- Open Notepad as Administrator
- File β Open β navigate to path above
- Add lines like:
0.0.0.0 ads.example.com - Save β Restart browser
Better: Use pre-made blocklists:
| Source | Domains Blocked | Link |
|---|---|---|
| StevenBlack | 78,000+ | github.com/StevenBlack/hosts |
| someonewhocares | 14,000+ | someonewhocares.org/hosts |
| MVPS | 10,000+ | winhelp2002.mvps.org |
Auto-updater for Windows: Unified Hosts AutoUpdate
Some Microsoft domains trigger Windows Defender if blocked β stick to ad domains only.
π Method 3: DNS-Level Blocking (Works Everywhere)
Best for: Apps that NEED internet but still show ads (VPNs, streaming, games)
Change Windows DNS to an ad-blocking DNS:
| Provider | DNS (Primary) | What It Blocks |
|---|---|---|
| Mullvad (recommended) | 194.242.2.3 |
Ads + Trackers |
| Mullvad Extended | 194.242.2.4 |
Ads + Trackers + Malware |
| AdGuard | 94.140.14.14 |
Ads + Trackers |
| Quad9 | 9.9.9.9 |
Malware (not ads) |
| NextDNS | Custom | Customizable |
Setup:
Win + Iβ Network & Internet β Change adapter options- Right-click your connection β Properties
- Select IPv4 β Properties
- βUse the following DNSβ β Enter DNS above
- OK β Close
Or use DNS-over-HTTPS in browser:
- Chrome/Edge: Settings β Privacy β Use secure DNS β Custom β
https://adblock.dns.mullvad.net/dns-query
π‘οΈ Method 4: System-Wide Ad Blockers (Nuclear Option)
Desktop apps that block ads in ALL applications:
| Tool | Price | Notes |
|---|---|---|
| AdGuard for Windows | $30/lifetime | Best overall, blocks in apps + browsers |
| AdLock | $22/year | Lightweight, good for games |
| AdBlocker Ultimate | Free tier | System-wide blocking |
| Blokada | Free | Open-source, works on desktop too |
These work at system level β ads blocked in games, apps, browsers, everything.
β‘ Quick Decision Guide
| Situation | Best Method |
|---|---|
| App works offline, just shows ads | Firewall block (Method 1) |
| Want system-wide protection | Hosts file (Method 2) |
| App needs internet but has ads | DNS blocking (Method 3) |
| Want zero effort, pay once | AdGuard app (Method 4) |
| Free VPN tier with ads | DNS + hosts combo |
Pro tip: Layer methods for maximum blocking. Firewall + DNS + hosts file = almost nothing gets through.
Free software without the ad tax. Your bandwidth, your rules.
!