Skip to content

Instantly share code, notes, and snippets.

@hashborgir
hashborgir / proxyblocker.sh
Created May 10, 2024 15:26
proxyblocker.sh
```sh
#!/bin/bash
# Function to download and add IPs to an IP set
add_to_ipset() {
local url="$1"
local ipset_name="$2"
ipset -q destroy "$ipset_name" 2>/dev/null
ipset -q create "$ipset_name" hash:ip