FirewallRules.GetBlocked
Skip to content
mnscript
string[] FirewallRules.GetBlocked() 

Description ​

Return the list of block IPs.

Returns ​

string[] - A string array containing IPs.

Example ​

msc
using System;
using Console;
using Firewall;
using Application;
using Array;

//Request Admin Perms
Application.RequestAdminPrivilege();

FirewallRules rules = Firewall.GetFirewallRules();

//Print Out Blocked IPs
string[] blocked = rules.GetBlocked();

number bI = 1;

Console.WriteLine("Blocked:");

while ( Array.Length(blocked) >= bI  ) {
    
    Console.WriteLine(blocked[bI]);
    
    bI = bI + 1;
    
}