How revan-02/website-blocker-python. works
Project type and purpose
• This is a desktop full-stack (single-machine) productivity app written in Python with a Tkinter GUI.
• Purpose: block/unblock websites by editing the system hosts file, with password protection, multi-user profiles, scheduling, and logging.
File structure
• The repository contains only README.md and website_blocker.py.
• All functionality lives inside the monolithic Python script: GUI, business logic, configuration, scheduling, file I/O, and logging.
• No separate “backend” or “frontend” services—everything runs in one process on the user’s machine.
README for additional insights
• Core modules implied:
• GUI (Tkinter)
• Authentication (password check, profile management)
• Blocking engine (hosts file modifier + DNS flush)
• Scheduler (time-based activation)
• Temporary-block timer
• Logging (action history)
• Cross-platform considerations: Windows, macOS, Linux.
Detailed checklist
• Data flow: e.g., “block request”, “hosts file update”, “DNS flush”.
• Multi-user support: Profile Manager reads from per-user config.
• Password protection flow: Authentication Manager gatekeeping the Controller.