NOTE: I just tested this (2026-06-01) on an Adobe Commerce Cloud site and could not get it to work, despite a couple of developers managing other sites attesting that it did work for them. So YMMV.
We (Kraken Commerce) recommend using Cloudflare in front of Adobe Commerce Cloud environments, as Cloudflare provides excellent bot-fighting and performance tools. However a small change is needed in the Magento VCL to pass the user's IP from Cloudflare>Fastly/Varnish>Nginx so that user's IPs are stored in the access logs correct.
Steps:
- Login to the Magento admin and go to
STORES > Configuration > ADVANCED > Systemand expand theFull Page Cache > Fastly Configuration > Custom VCL Snippetssection. - Click the "Create" button and add this information:
