Skip to main content
OS utility functions.

SetProgramBlocked

path is an absolute executable path. Enabling adds inbound and outbound firewall rules and closes current IPv4 TCP connections. Disabling removes the rules. Returns whether the firewall change succeeded. Errors if path is empty, longer than 260, not absolute, or contains a " or control character. Firewall rules cover IPv4 and IPv6. Connection teardown covers IPv4 only. Rules are removed when disabled, when the script unloads, reloads, or is disabled, and when the cheat closes normally.

IsProgramBlocked

true if this session has a block on path.

KillProgramConnections

Drops active IPv4 TCP connections for processes running from path. It does not change the firewall and returns the number of connections dropped.

Cleanup

A crash may leave a Starline-NetBlock-* firewall rule behind. Re-block and unblock the program, or remove the rule in Windows Firewall.