Configuration bug with domain forwarding

What is the name of the domain?

What is the issue you’re encountering

Domain was forwarding to web worker even after the web worker was disabled.

What steps have you taken to resolve the issue?

To resolve:
Remove the domain from Cloudflare hosting and move it back to GoDaddy (NS change).
Wait 5 minutes for DNS to update.
Then re-add the domain to Cloudflare hosting.

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

I moved my domain to Cloudflare on Oct 23.
I didn’t know how to configure it, so I created a worker to relay traffic from my CF-hosted domain to my actual IP address. (I didn’t realize that transparent hosting happened automatically.)
I configured a forwarding rule so any requests to my hostname would go to the worker’s domain name. This worked well for the first 12 hours.
Then I realized that the worker wasn’t needed. I removed the forwarding and disabled the worker.
Although the worker was disabled, all requests to my domain still used “Host:” for the relayed hostname.
The worker was “disabled”. When I deleted it, all traffic to my site stopped.
As far as I can tell there was a forwarding rule that I cannot access from the web configuration page that was using the wrong forwarding hostname.

I ended up completely deleting the domain from Cloudflare, waiting a few minutes, and then re-adding it. This cleared out the misconfigured forwarding rule.

Hi there ‘hfcf’,

I apologize for not understanding, but can you explain to us, is your situation resolved?

Cheers!

Yes, the situation is resolved.
The resolution: Move my domain from Cloudflare (move it back to GoDaddy). This deleted all of the settings from Cloudflare. Then (after about 5 minutes) I moved to back to Cloudflare.

The bug you have:
If you create a worker and a forward rule that goes from hostname to worker’s URL, then deleting the rule and disabling the worker does NOT stop it from forwarding to the worker. Moreover, the worker still seems to be active.

I had created a worker to forward from “myhostname” to a network address that I own. The HTTP “Host:” listed the redirect hostname that the worker was using.

When I removed the forward from “myhostname” to the worker URL, the “Host:” still was my redirected host that was being provided by the worker. (I waited a few hours.)

When I disabled the worker, I was still seeing “Host:” from the worker. (I waited a few hours.)

When I deleted the worker, all connections to my host failed. This means the disabled worker was still being used.

It seems that disabling a forwarding rule and turning off a worker does NOT actually disable the forwaring rule or disable the worker. The only solution I could find: Unlink my domain from Cloudflare to remove all previous settings, then re-link my domain.