Examples of using the system

April 17, 2024

ID 247030

User management of fines accrual is implemented in the add_fine API method. Due to the high flexibility of the fines system, there are several ways to apply this method, for example:

  • Blocking an IP address by passing the following values to the add_fine API method:
    • Fine with a value of 100 (fine).
    • Desired blocking time (ttl).
    • IP address to be blocked (ip_list).

Traffic from this IP address will not be allowed to the protected resource for the specified period of time.

  • Allowing all traffic from a certain IP address to the protected resource by passing the following values to the add_fine API method:
    • Fine with a value of -100 (fine).
    • Desired blocking time (ttl).
    • IP address from which the traffic must be allowed (ip_list).

Traffic from this IP address will be allowed to the protected resource for the specified period of time.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.