Blocking by IP Address
To block traffic coming from one or multiple IP addresses, you can incorporate the following configuration snippet within the vcl_recv function.
In this example, we use the IP address provided in the True-Client-Ip header. If the request comes from any of the listed IP addresses, it will be blocked immediately.
Last updated
Was this helpful?