API — Web Programming

List of Functions and Properties

Complete reference of all functions and properties available in the Firewall Manager COM object. Compatible with PHP, ASP, and .NET.

Classic ASP PHP .NET COM Object XML / JSON

All functions are invoked on an instance of the FlexFirewallManager.Admin COM object. Remember to always set Username and Password before calling any function.

Available functions


Function Version()

Provides information about the installed version of the extension and the server's operating system data.

Function isIP(IP)

Returns whether the given IP has the correct format and whether it is IPv4 or IPv6.

Function FindIP(IP)

Finds the IP address in the Firewall and indicates which rule it is currently blocked in.

Function InfoIP(IP)

Shows detailed information about the IP such as Country, Provider (ISP), and ASN code.

Function ReputationIP(IP)

Shows the current reputation and risk score of the IP address by checking international blacklists.

Function FirewallStatus()

Indicates the current status of the Windows Firewall on the server: active, inactive, or with errors.

Function UnlockIP(IP)

Unblocks the given IP address by removing it from the Windows Firewall rules. Returns true or false.

Function BlockIp(IP)

Blocks the given IP address by adding it to the Windows Firewall rules. Returns true or false.

Function CloudFlareLogin(email, key)

Connects to the Cloudflare account using the provided email and API Key to synchronize blocks.

Available properties


Property Username

System user with access to the extension. Required before calling any function.

Property Password

System user password. Required before calling any function.

Property FormatOutput

Format of the response returned by the functions. Possible values: json or xml. Default: xml.

Property LangOutput

Response language for messages. Possible values: ES, EN, FR, etc.

Property CloudflareDomain

Selects the Cloudflare domain account to operate on after connecting with CloudFlareLogin().

PHP usage example


Basic example that instantiates the COM object, sets the properties, and calls the Version() function to get system information.

// Create COM object instance $app = new COM("FlexFirewallManager.Admin"); // Set properties $app->FormatOutput = "JSON"; $app->LangOutput = "EN"; $app->Username = "System User"; $app->Password = "User Password"; // Call a function echo $app->Version();