Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We are an eCommerce web site acceleration solution. Part of our solution involves caching content and delivering them faster to the end users. To achieve this, we need to be a proxy layer in front of Shopify. The domain is CNAMEd to point to our accelerator. The configuration looks like:
# shopify.example.com is CNAMEd to point to us
End user visits shopify.example.com -> eCommerce Accelerator -> Shopify origin
When we send the request to Shopify origin, origin treats our server IP address as end users' IP address. Is there any HTTP header that we need to set to help Shopify see the end user's IP? Like "True-Client-IP".
Hello @royzy,
Hope you are doing well! We are glad we can be of help to you.
You can use either X_FORWARDED_FOR or the X_REAL_IP in the header for passing the end user's IP address to Shopify origin.
All the best,
CedCommerce
Hi,
We have same problem in our accelerator solution. When a proxy is in front of shopify origin, customer's IP in order is the IP of proxy.
I tried to send real IP of customer in header (X_FORWARDED_FOR or the X_REAL_IP) but ip in order and anti-fraud system always Proxy IP.
Does it exist another Header to send the real Ip ?
Thanks for your help
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025