A simple Python script using Tkinter to block and unblock websites by modifying the hosts file.
This script allows users to block or unblock websites by manipulating the hosts file on their system. It provides a GUI built with Tkinter for easy interaction. Users can input the websites they want to block or unblock, and the script handles the rest.
- Block or unblock multiple websites at once.
- Simple GUI for easy interaction.
- Provides feedback on whether the website has been successfully blocked or unblocked.
- Run the script.
- Enter the websites you want to block or unblock, separated by commas.
- Click the 'Block' button to block the entered websites or the 'Unblock' button to unblock them.
- You'll receive feedback indicating whether the action was successful.
- Close the window when done.
- Python 3.x
- Tkinter (usually comes pre-installed with Python)
- Ensure you run the script with appropriate permissions to modify system files (e.g., hosts file).
- Use caution when blocking or unblocking websites, as it may affect system behavior.
Feel free to contribute or suggest improvements!