Applications Protection
Defend against bots, risky AI agents, & client-side threats
If you want to run internal tests from your office/site IP addresses, you can filter out requests originating from a specific IP address.
TO define an IP address you want to filter:
EXAMPLE
1sub px_custom_filter_by_ip {2 if (req.http.Fastly-Client-IP ~ {"<filterd_ip_address_regex>"}) {3 set req.http.X-PX-filter-by:ip = "1";4 }5}
To learn more about custom subroutines, see Customized subroutines.
TO enable the feature:
1table px_configs {2 "px_filter_by_ip_enabled": "true",3}