๐ก๏ธ System Security Manager (AdBlock & DNS Tool)
A lightweight, portable, and open-source PowerShell tool designed to enhance your systemโs privacy and security. It allows you to easily switch DNS providers and block advertisements/trackers system-wide using the Hosts file.
๐ธ Screenshots
The modern, dark/light-themed UI allowing quick DNS toggling and host file updates.
โจ Features
-
๐ DNS Manager: - Quickly switch between popular DNS providers (Google, Cloudflare, Quad9, AdGuard, OpenDNS).
-
Easily revert to Default (DHCP) with a single click.
-
๐ซ System-Wide AdBlocker: - Blocks ads, trackers, and malicious domains by modifying the Windows
hostsfile. -
Aggregates blocklists from trusted sources (StevenBlack, AdAway, Yoyo).
-
**๐ง Smart Merge Logic:*โฆ
๐ก๏ธ System Security Manager (AdBlock & DNS Tool)
A lightweight, portable, and open-source PowerShell tool designed to enhance your systemโs privacy and security. It allows you to easily switch DNS providers and block advertisements/trackers system-wide using the Hosts file.
๐ธ Screenshots
The modern, dark/light-themed UI allowing quick DNS toggling and host file updates.
โจ Features
-
๐ DNS Manager: - Quickly switch between popular DNS providers (Google, Cloudflare, Quad9, AdGuard, OpenDNS).
-
Easily revert to Default (DHCP) with a single click.
-
๐ซ System-Wide AdBlocker: - Blocks ads, trackers, and malicious domains by modifying the Windows
hostsfile. -
Aggregates blocklists from trusted sources (StevenBlack, AdAway, Yoyo).
-
๐ง Smart Merge Logic: - Preserves your data: If you have custom entries in your hosts file (e.g., for local development), this tool will not delete them. It only manages its own blocklist section.
-
๐จ Modern UI: - Clean WPF-based Graphical User Interface.
-
Auto-Theme: Automatically adapts to your Windows Light or Dark mode settings.
-
๐ฆ Portable: - Single
.ps1file. No installation required.
๐ Getting Started
Prerequisites
- OS: Windows 10 or Windows 11 (64-bit required).
- Permissions: Must be run as Administrator (required to modify Network settings and System files).
Installation & Usage
Option 1: Using the Executable (Recommended)
- Download the latest
AdBlockDNS.exefrom the Releases Page. - Double-click
AdBlockDNS.exeto run.
Option 2: Running the Script (For Developers)
- Download the source code.
- Right-click
AdBlockDNS.ps1and select Run with PowerShell.
- Note: If you encounter an Execution Policy error, run this command in PowerShell once:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
๐ ๏ธ How It Works
- DNS Changer: Uses native PowerShell commands (
Set-DnsClientServerAddress) to change the DNS servers of your active network adapter. - Hosts Blocker: - Downloads raw text lists of ad-servers.
- Parses and formats them into a Windows-compatible format.
- Appends them to
C:\Windows\System32\drivers\etc\hostsinside a tagged block. - Creates a backup (
hosts.bak) automatically before the first run.
โ ๏ธ Disclaimer
This tool modifies system files (hosts) and network settings. While it includes safety features (backups and smart merging), use it at your own risk.
- Always ensure you have a system restore point if you are unsure.
- VPNs or other security software might conflict with DNS settings.
๐ License
This project is licensed under the MIT License.
Created by @osmanonurkoc