A photo of Mitesh Shah

Mitesh Shah

Linux Enthusiast
System Administrator

Email Skype Github Twitter Google+ Resume Hire Me Keybase LinkedIn Stackoverflow


How to Block Facebook

Overview

Block Facebook

Find Facebook Subnets

$ whois -h whois.radb.net '!gAS32934'

Block Facebook

#!/bin/bash
for ip in `whois -h whois.radb.net '!gAS32934' | grep /`
do
  iptables -A FORWARD -p all -d $ip -j REJECT
done




Post Navigation