This page looks best with JavaScript enabled

Internet Access Control Utility

 ·  β˜• 2 min read

Control Internet access with Windows Firewall

Internet Access Control Utility can also be downloaded from:

Please consider supporting my work:

  • Sign up using Patreon.
  • Support with a one-time payment using PayPal.

If you’d like to contact me, please leave a comment, send me a tweet or DM, or you can join my Discord server.


Features and Requirements

  • It requires Windows Firewall to be active.
  • This utility has been tested on Windows 10.


Here’s a list of all the command line switches and example configurations.

Command Line Switch Description Example
-Disable Block the internet. Create the firewall rule to block ports 80 and 443 N/A
-Enable Allow the internet. Removes the firewall rule created, allowing the ports 80 and 443 N/A
-NoBanner Use this option to hide the ASCII art title in the console. N/A
-L The path to output the log file to. The file name will be Inet-Access-Control_YYYY-MM-dd_HH-mm-ss.log. Do not add a trailing \ backslash. C:\scripts\logs


Internet-Access-Control.ps1 -Disable -L C:\scripts\logs

The above command will disable the internet access using Windows Firewall and the log file will be output to C:\scripts\logs.

Change Log

2021-12-08: Version 21.12.08

  • Configured logs path now is created, if it does not exist.
  • Added OS version info.
  • Added Utility version info.
  • Added Hostname info.
  • Changed a variable to prevent conflicts with future PowerShell versions.

2020-03-18: Version 20.03.18 ‘Lock’**

  • Improved feedback in the console and log.
  • Improved documentation.

2020-03-17: Version 20.03.17 ‘Lock’**

  • Added logging.
  • Added config report.
  • Made available on PowerShell gallery.
  • Refactored code.
Share on
Support the author with