Forum Discussion

saidshow_251381's avatar
saidshow_251381
Icon for Cirrostratus rankCirrostratus
May 16, 2016

Serving a difference Custom Error based on Country for the same ASM policy

Hi,

 

We have 2 similar applications using the same ASM policy. As an example, lets say foo.com.au and foo.co.uk. We have a custom error page defined in the ASM policy along with contact details. Ideally we would want users coming from .com.au site or from AUS geo code to be served the AUS contact details and users coming from .co.uk or from a UK Geo code, to be sent to a different custom error page with UK contact details.

 

Is anyone able to discuss how this can be done? Thank you.

 

  • HI, I can only think of the following:

     

    1. Using iRule to test the URL or IP geolocation then send a appropriate custom response;

     

    2. Using javascript to check the browser language (maybe too weak);

     

    3. Simply send all the contacts with message to warn what is more appropriate to user contact.

     

    Regards.