Report this

What is the reason for this report?

Geofence a Digital Ocean App Platform App

Posted on December 16, 2025

What’s the best way to geofence an app platform app? I need to restrict to US only. I don’t want to do this at the application level ideally, but if I had a header with country code in it that would be fine. I’m wary of making changes to my DNS records. Is there a way to enable Cloudflare headers from within DO that expose the country of origin? Why is geofencing not supported by DO? Seems like a pretty common and basic need. Would be incredible if DO were able to offer this.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.