X-Forwarded-For setup in dispatcher for obtaining client IP | Community
Skip to main content
Level 2
April 17, 2023
Solved

X-Forwarded-For setup in dispatcher for obtaining client IP

  • April 17, 2023
  • 2 replies
  • 2010 views

Hi Folks ,

Please let me know how to setup X-Forwarded-For in our dispatcher in order to get details of client IP details . We are using AEMCaas . Got this post below but unable to figure out where to write this . 
https://www.lazydeveloper.tech/aem/accessing-the-users-ip-address-on-aem-servers-in-ams/
Eagerly waiting for your valuable suggestions.
Thanks in advance !!

Regards,
Kaushik

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 kdatta

Thanks everyone for your support . This feature is already enabled in AEMCaas . Below is the github link.
https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/dispatcher.cloud/src/conf.d/rewrites/default_rewrite.rules#L24

2 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
April 17, 2023

@kdatta If you have the dispatcher as suggested by Adobe for cloud. you should be able to add it remoteip.conf file present under conf.d folder , please check with CSE if am wrong. 

kdattaAuthor
Level 2
April 17, 2023

@saravanan_dharmaraj will you please let me know under which section I have to add remoteip.conf under conf.d folder .

 

kdattaAuthorAccepted solution
Level 2
April 21, 2023

Thanks everyone for your support . This feature is already enabled in AEMCaas . Below is the github link.
https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/dispatcher.cloud/src/conf.d/rewrites/default_rewrite.rules#L24