Url Block List Generator is a command-line tool developed with the help of ChatGPT to generate a list of blocked sites by combining multiple text files containing URLs.
Url Block List Generator takes a list of websites from text files in a specified directory and generates a list of blocked sites in various formats. The output formats include:
- hosts file format for Windows, macOS, and Linux.
- text file format with www and without.
To use Url Block List Generator, simply follow these steps:
- Clone the repository or download the source code
- Create a directory named "sites" in the same directory as generate-hosts.bat and generate-txt.bat
- Create one or more text files in the sites directory, each containing a list of websites you want to block (one per line)
- Run generate-hosts.bat to generate a hosts file in the current directory
- Run generate-txt.bat to generate a text file in the current directory
The generated files can be used to block access to the specified sites on your computer.
- Router like FRITZ!BOX open the web interface.
- Go Internet->Filters->Lists and click edit "Blocked websites".
- Copy and paste the sites from generated sites.txt and save.
- Open Windows Explorer and navigate to C:\Windows\System32\drivers\etc
- Right-click on the hosts file and select "Properties".
- In the "Properties" window, uncheck the "Read-only" box if it is checked, then click "OK".
- Copy the hosts file generated by the generate-hosts.bat file to C:\Windows\System32\drivers\etc
- If prompted, choose to replace the existing hosts file.
- Open a command prompt as an administrator.
- Type ipconfig/flushdns and press Enter or restart your computer.
This project was created with the help of ChatGPT, a large language model developed by OpenAI. If you have any suggestions, questions, or issues with the project, feel free to open an issue on GitHub.
This project is licensed under the MIT License - see the LICENSE.md file for details.