Geolocation restrict and redirect to a URL

hi all,

Currently we have geolocation restriction enforced, where we only allow user from location APAC and those who are not from APAC region will get the default response page “The requested URL has been rejected. Please contact your administrator”, is there a way to configure and redirect them to a custom URL?

I tried to test using irules but it doesnt seem to be working.

Thanks.

How are you currently performing the geolocation restriction?

Hi, there’s a geolocation restriction in WAF security policies. we can block geolocation but need to redirect the user into a customized URL instead of the default message.

any help on this guys?