Problem while adding subdomain or localhost URL in add site

Hello team,

I am trying to activate the APO plugin on the WordPress site. When I am trying to add localhost or subdomain site in this then I am getting an ‘Invalid Domain’ error.

Could you please let me know how I can activate Cloudflare APO in my local environment or in the testing environment?

Thank you.


Neither will work. You have to add a proper domain which is child of a publicly recognised TLD or SLD. As long as it is listed at, you can add it, otherwise you can’t.

Simply add your domain and create a regular host record which points to your local machine.

1 Like

If it’s a subdomain that’s proxied by Cloudflare, it should work.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.