Is it possible to do geo detection by IP with Azure Front Door (not geo filtering by IP)

Jack Jin MSFT Accenture 80 Reputation points Microsoft Vendor
2024-01-10T00:53:10.6233333+00:00

Hello!

We're currently planning on using Azure Front Door and we saw that it's possible to do geo filtering by IP. However our requirement would like to have the geo detection (not filtering) by IP, so we can add in countries to functionalities if the user does not choose one.

Has anyone gotten geo detection by IP to work with Azure Front Door?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
587 questions
{count} votes

Accepted answer
  1. Silvia Wibowo 3,086 Reputation points Microsoft Employee
    2024-01-10T05:30:04.38+00:00

    Hi @Jack Jin MSFT Accenture , I understand that you want to detect the country of an IP address.

    Azure Front Door and Azure App Gateway have WAF (Web Application Firewall) that enables you to filter requests only from a specific country based on requester IP address. However, it can only be used in WAF custom rule, with operator "GeoMatch" of "RemoteAddr" header value.

    If you want to detect the country on an IP address in your app, you can use 3rd party API such as https://api.iplocation.net/ which will tell you the country_name and country_code2 (2-digit country code).

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful