A photo of Mitesh Shah

Mitesh Shah

Linux Expert | Automation Enthusiast | Security Consultant

Email Skype Github Twitter 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