
CLI Website Blocker for Linux in Rust
Over the past few weeks, I wanted to get familiar with CLI and system control using Rust, and since I manually block websites in /etc/hosts to focus, I thought, Let's build a website blocker to make the process easier. What it does It writes domains to domains.txt. When the block starts, the domains are written to a temporary file, which is then changed to /etc/hosts to prevent data corruption and generate a clean file at any time. If you want to check out the code, or install the blocker and use it, then you can check out the repository: blocker . In the README, I've clarified what it does, how to install it, and how to use it. If you have any questions or see some major improvements, feel free to leave a comment or open an issue on GitHub
Continue reading on Dev.to
Opens in a new tab



