How to whitelist IP address in AEM Dispatcher for specific path | Community
Skip to main content
Level 2
August 21, 2023
Solved

How to whitelist IP address in AEM Dispatcher for specific path

  • August 21, 2023
  • 1 reply
  • 2094 views

Hi Team,

 

I do follow the post https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-whitelist-ip-through-aem-dispatcher-aem-community-blog/m-p/445937#M32298 but we have a use case where location (like /content/abc) is also required along with IP address to whitelist.

 

May be if anyone came across such usecase and can share any information would be really helpful.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sherinregi-1

Hi @sumit30908642ioye 

For restricting the IP whitelisting based on location you can try to add the IP restriction tags inside the Location URL tag which might help to achieve your usecase

 

LocationMatch "/content/abc*" Require ip 10.42.137.123 Require ip 122.6.218.101 #Repeat the "Require ip ..." for each IP you want to allow /RequireAll /LocationMatch

 

couple of links you can refer

https://httpd.apache.org/docs/2.4/mod/core.html#location

https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-17455.html?lang=en

 

 

 

1 reply

sherinregi-1
Community Advisor
sherinregi-1Community AdvisorAccepted solution
Community Advisor
August 21, 2023

Hi @sumit30908642ioye 

For restricting the IP whitelisting based on location you can try to add the IP restriction tags inside the Location URL tag which might help to achieve your usecase

 

LocationMatch "/content/abc*" Require ip 10.42.137.123 Require ip 122.6.218.101 #Repeat the "Require ip ..." for each IP you want to allow /RequireAll /LocationMatch

 

couple of links you can refer

https://httpd.apache.org/docs/2.4/mod/core.html#location

https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-17455.html?lang=en

 

 

 

Level 2
August 21, 2023

Thank you @sherinregi-1 

 

This looks interesting. Let me try and update here.

 

Thanks