GridPane is pleased to announce that we’ve accepted a strategic investment from Automattic Read all about it

Website Redirecting When Cloudflare’s Proxy Active (Orange Clouds ON)

3 min read

Are You Experiencing an Unexpected Website Redirect With Cloudflare?

An unusual redirect issue we came across occurred only when the Cloudflare proxy was active (as soon as the orange clouds are turned on). Upon deactivating the proxy, the redirect disappeared, and the website loaded correctly again.

The debug clearly demonstrated that the issue was stemming from Cloudflare, but it was still quite a mystery as to why this was happening.

This article details the source of the problem and how to solve this problem should it ever occur on any of your websites.

Cloudflare SaaS Partners

The issue can happen if your domain was previously registered with a Cloudflare SaaS partner. Technically, it’s not actually a redirect, it’s Cloudflare pointing the domain to the A record of the previous SaaS partner.

The SaaS partner service offering allows partner providers to use Cloudflare’s features on their customers’ domains, which means that Cloudflare’s SSL certificates, hostnames, security settings, and performance settings are all set up to be managed in a completely different account from your own.

Hostname Priority

The partner should have removed your domain after they ceased providing their service, but in the case we’ve seen, the domain had not been officially “offboarded”.

Until your website is offboarded from their account, you won’t be able to manage any of the regular Cloudflare settings until you retake control.

This is due to “Hostname Priority”. If multiple Cloudflare setups exist for the same hostname, only one can take effect. Due to how Cloudflare for SaaS partners works, this is prioritized over your regular DNS setup.

What To Do If A Previous Provider Has Not Offboarded Your Domain

You potentially have three options to retake control of your hostname – if you’ve only recently registered the domain then you’ll only have options 2 and 3: 

  1. If you had a working relationship with a Cloudflare SaaS partner, then you can reach out to them directly and ask them to offboard you.
  2. Paid plans only: Reach out to Cloudflare support at https://dash.cloudflare.com/?account=support. Select “Get More Help”, then “Account” as the issue type. Finally, use the description “Cannot remove custom hostname” and include a clear description of what’s happening for their support. Note that this may not be resolved quickly.
  3. Use the third-party service “Liberate the Hostname” as detailed below.

Liberate the Hostname

Liberate the Hostname is a third-party service that you can allow to take control of your hostname from the current SaaS partner provider, and they will then offload it to allow you to take back control.

This is likely the quickest way to resolve this issue for your website. Also, if your website is on Cloudflare’s Free tier, you can’t contact their support team to help resolve the issue, so it’s likely your only option.

The service can be found here and provides clear instructions for the whole process.

https://liberate-the-hostname.pages.dev/