Module description:
The component is designed to restrict access to a specific page by IP. It supports the following features:
- Switch between white and black lists;
- Configure the redirect address;
- Specify IP addresses in exact format and CIDR format (e.g., 192.168.1.0/24);
- Automatically generate a standard 403 page in the site root with a preliminary backup of the existing file.
Limitations:
- Blocking is performed at the Bitrix component level. If the page is served from a static cache, CDN, or by the web server before the component's PHP code is executed, the rule may not be applied. For strict access protection, it is recommended to use blocking at the web server level.
- By default, the IP is determined via REMOTE_ADDR. When the site operates behind a CDN, reverse proxy, or load balancer, the module may see the proxy IP instead of the real client IP. Support for X-Forwarded-For cannot be enabled without configuring trusted proxies.