An open API service indexing awesome lists of open source software.

https://github.com/abhinavsharma07/web-blocker-


https://github.com/abhinavsharma07/web-blocker-

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

## Website Blocker Application

This is a simple GUI application created using Python's Tkinter library for blocking websites by modifying the hosts file on a Windows system. The application allows you to enter a list of websites to block, and it will add the appropriate entries to the hosts file.

## How to Use

1. Clone this repository to your local machine.
2. Make sure you have Python installed.
3. Open the `website_blocker.py` file in a text editor and review the code.
4. Run the script using the following command in your terminal:
5. The GUI window will appear. Enter the websites you want to block, separated by commas.
6. Click the "Block" button to add the websites to the hosts file.

**Note:** The application requires administrative privileges to modify the hosts file. Always be cautious when making changes to system files.

## Features

- Simple and intuitive GUI.
- Allows you to block multiple websites at once.
- Provides success and error messages using Tkinter's `messagebox` module.

## Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request....