This Python script is designed to manage a list of IP addresses in a text file (allow_list.txt
). It provides functionality to remove specific IP addresses from the list of allowed addresses.
- Setup: Place the
allow_list.txt
file in the same directory as the Python script. - Configuration:
- Modify the
import_file
variable in the script to match the name of your text file. - Update the
remove_list
variable with the IP addresses that need to be removed from the list.
- Modify the
- Execution:
- Run the Python script.
- The script will read the initial contents of the file, remove the specified IP addresses, and rewrite the file with the updated list.
Licensed under the MIT License, Copyright © 2024