Whitelisting Cloudflare IPs 403 Error

Hello, I have the following problem:

I route my traffic to my WooCommerce store via Cloudflare. When I allowlisted Cloudflare’s IPs at the host and blocked any other IPs from accessing my site, access to my website was blocked completely. I kept getting the 403 error.

I allowlisted as follows:

Order Allow, Deny
Deny from all

Allow from 103.21.244.0/22
Allow from 103.22.200.0/22
Allow from 103.31.4.0/22
Allow from 104.16.0.0/13
Allow from 104.24.0.0/14
Allow from 108.162.192.0/18
Allow from 131.0.72.0/22
Allow from 141.101.64.0/18
Allow from 162.158.0.0/15
Allow from 172.64.0.0/13
Allow from 173.245.48.0/20
Allow from 188.114.96.0/20
Allow from 190.93.240.0/20
Allow from 197.234.240.0/22
Allow from 198.41.128.0/17
Allow from 2400:cb00::/32
Allow from 2606:4700::/32
Allow from 2803:f800::/32
Allow from 2405:b500::/32
Allow from 2405:8100::/32
Allow from 2a06:98c0::/29
Allow from 2c0f:f248::/32

The command was added to the .hcaccess.

After I removed the command, the website could be accessed again as usual.
What is the reason and how can you fix the problem?

The point is that on my last page, despite Cloudflare, the hoster was found out and also the backend IP.

Of course I want to prevent this, otherwise CF would really make no sense.

Before anyone asks:

Yes, both A and AAA and CNAME are proxified (orange cloud)

Can anyone help me?

What is your domain?

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