#!/usr/bin/env python import requests block_list = "https://github.com/borestad/blocklist-abuseipdb/raw/refs/heads/main/abuseipdb-s100-7d.ipv4" if __name__ == "__main__": response = requests.get(block_list) for line in response.text.splitlines(): if line.startswith("#"): continue line = line.strip() print(f'deny {line};')