This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |