Skip to content

Instantly share code, notes, and snippets.

View siliscale's full-sized avatar

Siliscale siliscale

View GitHub Profile
@siliscale
siliscale / gist:a86e1f33220b11099df05af35a86dbf4
Created October 1, 2025 03:06
my_mental_sanity_script.sh
#!/bin/bash
# This script will add POSTROUTING iptables rule to block websites
FORCE=${FORCE:-false}
BLACKLIST=(cnn.com www.cnn.com foxnews.com www.foxnews.com nytimes.com www.nytimes.com cnbc.com www.cnbc.com washingtonpost.com)
# Add NEWS_BLACKLIST chain if it doesn't exist
iptables -N NEWS_BLACKLIST