Views: 8
Last Modified: 30.01.2025

Module settings

Proactive protection module is configured in the Control Panel at Settings > System settings > Module settings > Proactive protection

The Settings tab highlights the available IP address blocking options and event logging in the system.

IP address blocking config


  • Allow Proactive Protection to ban your computer by IP (showing a warning message) – allows self-blocking by IP address. Warning message appears upon attempting to bock your own IP and after a second attempt to save blocking is finalized.
  • Path to IP block disable flag file (root-relative) – indicate path to a flag file that can be used to remove specified IP address restrictions in the field Path to IP block disable flag file (root-relative). Creating such a flag file is performed manually and helps to get access incase self-blocking by IP. File name can remain by default By default this file name can have the following format:
    ipcheck_disable_.
    , or can be indicated arbitrarily.

    Example for handling a flag file

    Let's overview the processing of the flag file using the situation of an accidental self-blocking by IP address:
    • Flag file has the following path in module settings: /bitrix/modules/ipcheck_disable_ourproject267. File has a custom name: ipcheck_disable_ourproject267;
    • Proceed to block your own IP. Immediately, an error 403 Forbidden appears after the blocking, i. e. access from the specified IP is restricted to this IP;
    • To return the access, connect to the sever using FTP and proceed via the path /bitrix/modules/;
    • Create an empty file with the name ipcheck_disable_ourproject267;
    • As soon as the file is created, all IP blocks are removed and the resource becomes available again;
    • Now, enter Control Panel, delete the IP from the Stop list, then delete the flag file to return existing restrictions by the remaining IPs (if available).
    Attention! Delete the flag file immediately after all issues with access are resolved. The Proactive protection module settings and the Stop list You can find at the Stop List page (Settings > Proactive protection > Stop List) provides information about rules for blocking the access for specific IP addresses to your Site or its several sections.
    will show a corresponding warning .

Logging parameters

This section allows indicating how and where event details are saved with writing option enabled at module's Control Panel (Settings > Proactive protection).

Message format

Indicates event details format.


Available message fields:
  • #AUDIT_TYPE# - Security auditor name;
  • #SITE_ID# - current site ID;
  • #USER_INFO# - user information;
  • #URL# - request URL;
  • #VARIABLE_NAME# - variable containing unsafe data;
  • #VARIABLE_VALUE# - unsafe data;
  • #VARIABLE_VALUE_BASE64# - unsafe data (base64 encoded).

User detail data - Specifies user details data format, associated with the event.


Available message fields:
  • #REMOTE_ADDR# - IP address;
  • #USER_AGENT# - User-Agent;
  • #USER_ID# - user ID.

Log events

When selected, event details will be logged into [link=187114]event log[/link].

Save events to Syslog

When selected, event details will be logged to a system log: Syslog or standard event log in Windows OS.

Logging facility (facility)

Specified in openlog (facility) for event details.

Logging level

Specifies logging level (priority) for event details.

Save events to file

When selected, event details will be recorded into a file.

Absolute file path

Specifies absolute path to file, containing event details entry.


Access permissions

Default access permission User groups access permission level with "by default" permissions level. [select_user] Access permission update for specific group. Possible assignment of the following access permissions to the Proactive protection module:
  • [D] Deny access - access restriction;
  • [F] Bypass proactive filter - for specified user group to bypass the proactive filter;
  • [S] Security_otp_public - allows managing one-time passwords;
  • [T] View all parameters - allows viewing only for all module data;
  • [W] Full access - full access to module resources.
  • Add access permission Allows adding extra access permission for user group.

0


Courses developed by Bitrix24