Azure CDN Geo Redirection

Ramachandran, Ragam 20 Reputation points
2024-08-05T11:40:42.5433333+00:00

I want to block/allow access to a website based on geo-location. Also, at same time, rather than blocking the request, is it possible to redirect to a different URL? I tried CDN geo-location feature to block/allow access from different countries. And looking for an option to redirect to different URL instead of blocking and showing the "The Request is blocked" message.

Azure Content Delivery Network
0 comments No comments
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 46,776 Reputation points Microsoft Employee
    2024-08-06T06:45:09.53+00:00

    @Ramachandran, Ragam ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I believe you are following the doc : Restrict Azure CDN content by country/region

    • From CDN, I don't see a configuration setting for redirection
    • You can raise this feedback in : Azure Feedback Hub
    • All the feedback shared in these forums are monitored and reviewed by the Microsoft engineering teams responsible for building Azure

    For redirection based on Geo location, you may consider using AFD with Rules Engine

    • For Rules match conditions, use "Remote address"
      • The remote address match condition identifies requests based on the requester's location or IP address. You can specify multiple values to match, which can be combined using OR logic.
      • User's image
    • And in Rule set actions, use "URL redirect" and redirect it to a different URL
      • User's image

    Kindly let us know if this helps or you need further assistance on this issue.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.