Skip to content
darsono6Public

About

Windows Hosts File Editor with Parental Control & AntiSpy

Topics

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

HOTS Hosts Banner

HOTS Hosts

Block distracting apps, protect your kids online, and stop Windows from spying on you β€” all from one simple app.

License: GPLv3 Platform Language

No account, no subscription, no ads. Just download and run.


What does it actually do?

Three things, in plain terms:

  • πŸ›‘οΈ Parental controls β€” block TikTok, Instagram, YouTube, adult sites, and more with one click. No router settings, no complicated setup.
  • πŸ”’ Windows privacy β€” turn off the telemetry and tracking Windows collects by default, with one click per setting.
  • ✏️ Hosts file editor β€” if you already know what the Windows hosts file is, this gives you a proper table editor for it instead of fighting Notepad and admin permissions.

You don't need to understand how any of this works to use it β€” the app walks you through it.

Looking for something simpler? If you just want to lock down the hosts file with a custom blocklist and don't need parental controls or the privacy/telemetry module, check out HOTS Hosts Lite β€” a smaller, focused sibling.

Main Window
Main window β€” table view with live search and entry management



Parental Control Panel
Parental Control β€” category blocklists with Cloudflare Family DNS toggle



Privacy Panel
Privacy β€” tiered telemetry controls with drift detection



Domain Existence Check
Diagnostics β€” "Check domains" scanning entries against public DNS



Malware Scanner
Diagnostics β€” "Scan malware" heuristic engine flagging suspicious entries

Getting started

  1. Download the installer
  2. Double-click it β€” Windows will ask for Administrator permission (that's normal, the app needs it to edit system files)
  3. Follow the setup wizard β€” done

Requires: Windows 10 or 11, 64-bit.

About the Windows warning you might see

Since this is a small independent project without a paid certificate, Windows may show a "Windows protected your PC" warning the first time you run it. This is normal for any new app that hasn't built up a download history yet β€” it does not mean anything is wrong with the file.

To continue: click More info β†’ Run anyway.

If you'd rather double-check the app yourself first, the full source code is right here in this repository β€” see Running from source below.

See CODE_SIGNING.md for full details on why the release isn't signed yet and how release builds are produced.


What's new in 2.3

  • Significantly lower resource usage β€” the app no longer depends on PySide6-Fluent-Widgets and runs on its own lightweight window and widgets
  • Code optimization throughout the application
  • A fifth accent color
  • Refreshed look and a number of small UI fixes
  • Uninstall wizard β€” instead of an all-or-nothing removal, the uninstaller now asks exactly what to undo: domain blocks + DNS-over-HTTPS + Cloudflare Family DNS, Privacy-tools changes, saved configuration, your custom domain list (kept by default), and hosts file backups. Anything left unchecked stays exactly as it was.
  • A heads-up before uninstalling: if you're only trying to install a newer version, you don't need to uninstall first β€” the installer now reminds you of that and lets you back out.
  • Reinstalling or updating over an existing install now starts from a clean installation folder, so files removed or renamed between versions no longer pile up on your system.
  • Fixed: Cloudflare Family DNS could stay enabled on the network adapter after uninstalling; it's now reverted along with the other domain-blocking configuration if you choose to.

Everything it can do

πŸ›‘οΈ Parental Control β€” click to expand
  • One-click blocklists for 15 categories: Twitter/X, Instagram, YouTube, Facebook, WhatsApp, TikTok, Twitch, Snapchat, Pinterest, Reddit, adult content, games, torrents, dating sites, random video chat
  • Cloudflare Family DNS β€” one click adds DNS-level filtering on top of the blocklists
  • Hosts file lock β€” stops the blocklists from being edited or removed by a curious kid (or malware) outside the app
  • Application blocking β€” stop specific programs (games, VPN apps) from launching at all
  • VPN client blocking β€” blocks 10 popular VPN apps that could otherwise be used to bypass the filters
  • DNS-over-HTTPS blocking β€” closes a common loophole where browsers quietly bypass the hosts file for DNS lookups
  • Block System Restore β€” stops someone from using System Restore to undo all the blocks
πŸ•΅οΈ Windows Privacy β€” click to expand

37 individual telemetry and tracking settings, grouped into four levels (Basic β†’ Privacy+) so you can go as light or as aggressive as you want. Covers Windows telemetry services, advertising ID, activity history, location tracking, Recall, and more. Every setting can be reviewed and toggled individually, and reverted at any time.

Includes a drift detector that warns you if Windows quietly re-enables something after an update, and one-click System Restore point creation before you make changes.

✏️ Hosts File Editor β€” click to expand
  • Table view of all entries, live search, bulk paste, sorting
  • Add / edit / delete / enable-disable entries without touching Notepad
  • Auto-backup before every save (last 15 kept), with a diff preview before writing
  • Import/export .txt or .csv
  • Domain checker β€” flags entries pointing at domains that no longer exist
  • Malware scanner β€” heuristics for hijacked/suspicious entries (homoglyphs, DGA-style domains, typosquatting, and more)
  • Raw text view for anyone who wants to edit the file directly
🎨 Other features β€” click to expand
  • Light and dark themes, 5 accent colors, custom window with Mica backdrop on Windows 11
  • 7 languages: English, Polski, FranΓ§ais, Deutsch, EspaΓ±ol, PortuguΓͺs, Русский
  • Optional password protection (required to open the app or uninstall it)
  • Uninstall wizard β€” choose exactly what to undo (domain blocks, DNS, privacy settings, saved configuration, custom domain list, hosts backups) instead of an all-or-nothing removal
  • Built-in update checker
  • Auto-elevation, single-instance guard, window geometry memory

Good to know before you rely on this

Limitations of hosts-file / DNS-based blocking β€” click to expand
  • Big platforms (TikTok, YouTube, Facebook) use huge numbers of changing CDN domains β€” no blocklist is ever 100% complete at every moment. Lists are updated with each release, and you can add your own domains any time.
  • Modern browsers can bypass the hosts file entirely via DNS-over-HTTPS β€” HOTS Hosts closes this at the system policy level as of v2.1, so you don't need to dig through each browser's settings.
  • This only affects the Windows PC it's installed on β€” phones, tablets, and traffic tunneled through a VPN service aren't covered by hosts-file rules (separate from VPN client blocking, which stops specific VPN apps from launching on this PC).

Running from source

For developers β€” click to expand

Requirements: Python 3.10+, PySide6 and certifi (see requirements.txt)

git clone https://github.com/darsono6/HOTS.git
cd HOTS
pip install -r requirements.txt
pythonw hosts_editor_launcher.pyw

Must be run as Administrator β€” the hosts file is write-protected by Windows.

Project structure

hosts_editor_launcher.pyw   # Single-instance guard + admin elevation entry point (build target)
hosts_editor/
β”œβ”€β”€ __main__.py             # Entry point β€” app startup, password prompt, language init
β”œβ”€β”€ app.py                  # Main window β€” hosts table, toolbar, page navigation
β”œβ”€β”€ frameless.py             # Custom window shell β€” title bar, DWM shadow, Mica (Win11), page stack
β”œβ”€β”€ nav_rail.py               # Side navigation rail
β”œβ”€β”€ core.py                  # Data logic β€” parse, save, import/export, DNS, custom domain blocking
β”œβ”€β”€ core_antispy.py         # Privacy engine β€” services, firewall rules, tasks, registry tweaks, hosts file lock
β”œβ”€β”€ core_appblock.py       # Application blocking β€” IFEO redirection + ACL deny on target executables, VPN client bundle
β”œβ”€β”€ core_doh.py               # DNS-over-HTTPS blocking β€” per-browser Group Policy enforcement + drift watchdog
β”œβ”€β”€ core_restore.py         # System Restore point creation & frequency-limit removal
β”œβ”€β”€ bg_tasks.py               # Background worker thread registry β€” joined on app quit to avoid Qt teardown races
β”œβ”€β”€ constants.py             # Theme colors, accent presets, paths, settings load/save
β”œβ”€β”€ widgets_qt.py            # Reusable Qt UI components β€” buttons, dialogs, pages, tooltips
β”œβ”€β”€ ui_parts.py                # Small widgets β€” icon widget, toolbar button, progress ring, info banner
β”œβ”€β”€ icons.py                   # Built-in SVG icon set
β”œβ”€β”€ resource_utils.py       # Base-path resolution (dev / frozen / Nuitka builds)
β”œβ”€β”€ dns_utils.py              # DNS management β€” native interface lookup, Cloudflare Family DNS orchestration
β”œβ”€β”€ uninstall_flow.py       # Uninstall cleanup logic β€” mandatory system-lock teardown + optional, wizard-driven reverts
β”œβ”€β”€ i18n.py                     # Multilingual string system (EN / PL / FR / DE / ES / PT / RU)
β”œβ”€β”€ graphic/
β”‚   β”œβ”€β”€ logo.png                              # About page logo
β”‚   β”œβ”€β”€ logo.ico                                # Window/taskbar icon
β”‚   β”œβ”€β”€ logo1.png                              # Splash screen shown while the app starts
β”‚   β”œβ”€β”€ logoS.png                              # Small logo β€” title bar + Support page watermark
β”‚   β”œβ”€β”€ support_me_on_kofi_dark.png   # Ko-fi donate button on the Support page
β”‚   └── paypal_donate_button.png       # PayPal donate button on the Support page
β”œβ”€β”€ blocklists/                 # Plain-text domain lists for Parental Control & telemetry blocking
β”‚   β”œβ”€β”€ adult.txt
β”‚   β”œβ”€β”€ telemetry.txt
β”‚   β”œβ”€β”€ youtube.txt
β”‚   └── ...
└── dialogs/
    β”œβ”€β”€ entry_dialog.py           # Add / Edit entry form
    β”œβ”€β”€ diff_dialog.py             # Diff preview before save
    β”œβ”€β”€ backup_page.py           # Backup Manager
    β”œβ”€β”€ diagnostics_page.py    # Domain check & malware scan
    β”œβ”€β”€ parental_page.py        # Parental Control panel β€” categories, hosts file lock, app blocking
    β”œβ”€β”€ privacy_page.py          # Privacy / telemetry control center β€” restore point tools, custom domains, tiered tweaks
    β”œβ”€β”€ custom_domains_dialog.py  # Editor for the "Block your own domains" free-text list
    β”œβ”€β”€ _doh_card.py               # DNS-over-HTTPS blocking card (per-browser toggles + watchdog)
    β”œβ”€β”€ _appblock_card.py       # Application / VPN client blocking card
    β”œβ”€β”€ export_dialog.py         # Export to .txt / .csv
    β”œβ”€β”€ language_dialog.py     # Language selection
    β”œβ”€β”€ accent_dialog.py        # Accent color picker
    β”œβ”€β”€ support_page.py         # Support / donate window
    β”œβ”€β”€ about_page.py            # About & update checker
    β”œβ”€β”€ password_dialog.py     # Set / verify startup password
    β”œβ”€β”€ uninstall_wizard.py    # Uninstall-time "what should we undo?" wizard (launched by the installer's uninstaller)
    └── _*.py                        # Shared/internal helpers for the pages above

Language support

The interface language can be changed in Options β†’ Language. All UI strings, dialogs, and system comments are fully translated.

Code Language
en English (default)
pl Polski
fr FranΓ§ais
de Deutsch
es EspaΓ±ol
pt PortuguΓͺs
ru Русский

Third-party components

  • PySide6 (Qt for Python) β€” LGPLv3 / GPLv3
  • certifi β€” MPL 2.0
  • Icons: Fluent UI System Icons Β© Microsoft Corporation β€” MIT (license text kept in hosts_editor/icons.py)

Disclaimer

HOTS Hosts is provided in good faith but without any warranty. The author is not responsible for any damage, data loss, system issues, or other consequences resulting from the use of this application. Modifying the hosts file affects system-level network resolution β€” use with care. You use this software at your own risk.


Security

Found a security issue? Please report it privately rather than opening a public issue β€” see SECURITY.md for how to report and what's in scope.


Support

If HOTS Hosts saves you time or you simply want to say thanks:

Support me on Ko-fi

Website: hotstools.com Ko-fi: ko-fi.com/darsono PayPal: paypal.me/darsonodark Support: hots.support@gmail.com

No registration required. Any amount is appreciated.


License

GNU General Public License v3.0 Β© 2026 Darsono

About

Windows Hosts File Editor with Parental Control & AntiSpy

Topics

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages