Pythoncontrib/block-list.py
-rwxr-xr-x 371 B
1#!/usr/bin/env python
2
3import requests
4
5block_list = "https://github.com/borestad/blocklist-abuseipdb/raw/refs/heads/main/abuseipdb-s100-7d.ipv4"
6
7if __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};')