How to block a specific url in Application Gateway

Rakesh Sharma 61 Reputation points

Hi Team,

I have app gateway setup and its working smoothly :

But there is a request from client that i need to block a following site.

How can i achieve this on application gateway?

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,007 questions
{count} vote

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 40,581 Reputation points Microsoft Employee

    @Rakesh Sharma

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

    I understand that you would like to block users from accessing a page in your site,

    For the context, we can consider your site as

    I can think of two methods to prevent users from accessing

    Method1 : Using URL Rewrite

    Method2 : Use a Custom Rule

    It must be noted that WAF rules are used to DENY/ALLOW Request based on client properties generally

    In case you have a page /test.txt and you do not want users to access this, it is recommended that you must remove this from your site.

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



    Please l

    0 comments No comments