Skip to content

A small Powershell script that adds Rules to your Windows Firewall to block all facebook ip´s.

Notifications You must be signed in to change notification settings

laneme/block_facebook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

block facebook

A Powershell script that adds Rules to your Windows Firewall to block all facebook ip´s..
All ip's from facebook listed here ipinfo.io/AS32934 are added to an Inbound and Outbound rule and will be blocked.
All IPv4 and IPv6 address ranges included.

Installation

Start the Commandline as Admin in your folder where the script is and enter this:

powershell -ep RemoteSigned .\block_facebook.ps1

Take a look

New-NetFirewallRule -Name "110 Block facebook (in)" `
                -Description "Kill all facebook ip ranges" `
                -DisplayName "110 Block facebook (in)" `
                -Enabled True `
                -Profile Any `
                -Direction Inbound `
                -Action Block `
                -RemoteAddress ("102.132.96.0/20",
                                "102.132.96.0/24",
                                "103.4.96.0/22",
                                ...

About

A small Powershell script that adds Rules to your Windows Firewall to block all facebook ip´s.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%