Allow local custom domain in Dashboard

Is there a possibility to add custom local domains for local development and testing in the Cloudflare dashboard? Currently you can only add “localhost”, “127.0.0.1” and actual web domains, but if you use a local custom domain like “shop/” in your browser, you will get an error 403 in your request, because the domain is not added in the Cloudflare dashboard.

I’m not sure I understand what it is you’re trying to achieve.

Are you trying to add localhost as a Cloudflare zone? Or are you trying to create a DNS record in an existing Cloudflare zone that points to localhost?

I am trying to add a local domain into the turnstile settings.
2022-11-08_14h23_28

I see what you mean. This is an intentional limitation. You will have to use a subdomain of localhost or a real domain.

1 Like