🚫 Block Ads in Desktop Apps β€” Windows Firewall + DNS + Hosts File Guide

:shield: 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:

  1. Open Notepad as Administrator
  2. File β†’ Open β†’ navigate to path above
  3. Add lines like: 0.0.0.0 ads.example.com
  4. 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

:warning: 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:

  1. Win + I β†’ Network & Internet β†’ Change adapter options
  2. Right-click your connection β†’ Properties
  3. Select IPv4 β†’ Properties
  4. β€œUse the following DNS” β†’ Enter DNS above
  5. 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.

7 Likes