How Can I Limit Access to My Azure Web Apps Through Application Gateway with WAF?

August 30, 2025 11 answers
Asked by okra.in.season
I have a URL that's set up with an Azure Application Gateway equipped with WAF v2. I want to limit access so that only certain App Services, like myapp1.azurewebsites.net and myapp2.azurewebsites.net, can reach this URL. I've looked around and even checked with ChatGPT but it seems like I can't set up URLs directly in a WAF custom rule to manage this access. Does anyone have suggestions on how to allow specific URLs through WAF?

Answers

retake_the quiz
a
Reply to this answer
SpatulaFan
r
Reply to this answer
gingham
C
Reply to this answer
marble collector
c
Reply to this answer
!+copper patina
Are you trying to ensure just these two specific web services can access the Application Gateway, or do you want to limit it to just those and not allow other sites? Clarifying that will help pinpoint the best approach!
Reply to this answer
+99 wind chimes
a
Reply to this answer
seabed sediment
C
Reply to this answer
~under construction
r
Reply to this answer
__casual_observer
Y
Reply to this answer
cardboard_engineer
So, you want to restrict access to just a few app services through the Azure Application Gateway? A simpler approach might be to enable VNet integration for those appsโ€”they'll then stay together, boosting security and cutting costs! But if you still prefer WAF rules, that's an option too.

harpsichord bench: Using VNet integration sounds smart and budget-friendly. If a WAF is necessary, consider creating an internal Application Gateway for added security, but avoid complicating things too much. It can be done more efficiently by using service endpoints!

Reply to this answer
sandbar navigator
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions