FluxyAPIFluxyAPI
BlocksMiddleware

IP Restriction

Allow or block specific IP addresses.

IP Restriction Middleware Block

The IP Restriction Middleware Block adds a network-level security layer by filtering incoming requests based on the client's IP address.

Configuration

FieldRequiredDescription
ModeChoose Allowlist (only allow specific IPs) or Blocklist (block specific IPs).
IP AddressesA list of IPv4 or IPv6 addresses. Supports CIDR notation for ranges (e.g., 192.168.1.0/24).

Behavior & Responses

If the client's IP or geographic location violates the restriction list, the flow terminates and immediately sends an HTTP response (default 403 Forbidden) to the client:

{
  "error": true,
  "message": "Access denied: Your IP address is not allowed.",
  "code": "IP_RESTRICTED"
}

The error message and status code can be fully customized in the block's configuration.

On this page