X-Forwarded-For setup in dispatcher for obtaining client IP | Community
Skip to main content
Level 2
Apr 17, 2023 4:53 PM UTC
Solved

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

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.
kdattaAccepted solution
Level 2
Apr 21, 2023 4:35 AM UTC

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

3 replies

kdattaAuthorAccepted solution
Level 2
Apr 21, 2023 4:35 AM UTC

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

Translate
Saravanan_Dharmaraj
New Participant
Apr 17, 2023 6:30 PM UTC

@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. 

Translate
kdattaAuthor
Level 2
Apr 17, 2023 6:35 PM UTC

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

 

Translate