Available in all subroutines.
True if this backend, or recursively any of the backends under this director, is a shield backend. False otherwise.
req.backend.is_shield is used in the following code examples. Examples apply VCL to real-world use cases and can be deployed as they are, or adapted for your own service. See the full list of code examples for more inspiration.
Click RUN on a sample below to provision a Fastly service, execute the code on Fastly, and see how the function behaves.
Custom condition for triggering WAF
The web application firewall runs only on traffic to your origin, but you can further refine when it should be invoked.