Deny all incoming traffic IP to allow only WAF

Hello everyone!
we are using akamai’s WAF and one request to secure browsing is to restrict access to the site only to the akamai addresses to be whitelisted, so that we can only visit the site by going through the domain linked to akamai’s WAF. is it possible to restrict access? Usually on configurations like nginx we add the location block like this to the conf file:
location / {
allow ..*.0/24;
deny all;

is there any way to do this via netlify.toml or other way? We would like to continue using netlify.

Thank you

This is possible on the Enterprise plan: Firewall Traffic Rules | Netlify Docs but others can use Edge Functions to mimic the behaviour.