Overview
What is its Purpose?
- Blocks passage of blacklisted clients through API Proxy by evaluating all incoming clients by source IP address.
- Facilitates centralized blacklist management and provides reusability with corporately defined IP Group records.
- Enables client blocking by country or city using geographical location data.
- Makes blacklist applications fed from external systems possible with variable-based dynamic IP sets.
Working Principle
- Request Arrival: For each HTTP/HTTPS request arriving at the API Gateway, the source IP address of the request is identified.
- Policy Check: If the Blocked IP List policy is active, the system checks in the following order:
- Is a Condition defined? If so, is the condition met?
- Is the policy active (active=true)?
- Is a Variable used or is Apinizer default used?
- Blacklist Evaluation: Request IP is compared with defined IP list, connected IP Groups or selected geographical location entries; if needed, IP set obtained from dynamic variable source is used.
- Decision Making:
- Match Found: Request is rejected, customized error message and determined HTTP code are returned, operation is logged.
- No Match: Request flow is routed to next Policy or target service.
- Error Handling: Customizable HTTP status code and error message are returned for requests that do not comply with the policy rule.
Features and Capabilities
Basic Features
- Blacklist IP Management: Provides ability to add, edit and delete IP addresses in IPv4 / CIDR format; includes validation that prevents typos.
- IP Group Integration: Includes many IP records in blacklist at once by selecting existing IP Groups and provides group-based updates.
- Geographical Location Filters: Manages large-scale blocking scenarios with country and optional city selection, can create records covering all cities.
- Active/Passive Status Control: Easily change the active or passive status of the policy (active/passive toggle). In passive state, the policy is not applied but its configuration is preserved.
- Condition-Based Application: Determine when the policy will be applied by creating complex conditions with Query Builder (e.g., only for specific endpoints or header values).
Advanced Features
- Variable-Based Blacklist: Dynamically applies IP lists fed from external systems by selecting Apinizer Variable.
- Geolocation-Data Blend: Defines multi-layer blocking strategies in combination of selected countries and cities with IP list.
- Policy Usage Visualization: Facilitates impact analysis by tracking API Proxy and Policy Group information where it is used.
- Export/Import Feature: Export policy configuration as a ZIP file. Import to different environments (Development, Test, Production). Version control and backup capability.
- Policy Group and Proxy Group Support: Manage multiple policies within Policy Group. Bulk policy assignment to Proxy Groups. Centralized update and deploy operations.
- Deploy and Versioning: Deploy policy changes to live environment. See which API Proxies use it (Policy Usage). Proxy Group and Policy Group usage reports.
Usage Scenarios
Configuring Policy Parameters
In this section, you can create a new Blocked IP List policy or configure existing policy parameters to define access rules.Creating a New Blocked IP List Policy

Configuration Steps
For the description of Conditions and Error Message Customization panels, you can review the Conditions and Error Message Customization sections on the What is Policy? page.
For a complete guide on all layers, priority order and scenario examples of the error message configuration system, see the Error Message Configuration Guide page.

