Azure Firewall for VPS - how to limit countries requests dynamically

Renato Pereira 176 Reputation points


we have a VPS running at Azure BR-SP datacenter which is facing issues (attacks) from some countries; since our customers is only located in BR regions, there is a service to be purchased and implemented to protect our server dinamically blocking other countries??
Today we monitor some logs and mannualy block that IP ranges.

  • our server runs webservices
Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
475 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 39,421 Reputation points Microsoft Employee

    Hello @RenatoPereira-8565 ,

    May I know what service is to be purchased and implemented to protect the server by blocking other countries?

    If you are looking into Azure Firewall as I see in the query heading, it does not support geo based rules yet. You can upvote the feature in the below forum for the product team to make the improvements:

    The available options would be the below:

    1. Azure Application gateway WAF geomatch custom rules which is in preview:
    2. Azure CDN content restriction:
    3. Geo-filtering on a domain for Azure Front Door:
    4. Conditional Access: Block access by location:
    5. You can also opt for any 3rd party NVAs (Network Virtual Appliances) from Azure Marketplace which provides geo blocking features:

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


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments