1 | #!/usr/bin/env python |
2 | |
3 | import requests |
4 | |
5 | block_list = "https://github.com/borestad/blocklist-abuseipdb/raw/refs/heads/main/abuseipdb-s100-7d.ipv4" |
6 | |
7 | if __name__ == "__main__": |
8 | response = requests.get(block_list) |
9 | for line in response.text.splitlines(): |
10 | if line.startswith("#"): |
11 | continue |
12 | line = line.strip() |
13 | print(f'deny {line};') |