How to make same thing?

I want to block direct ip so people couldnt join my website with ip

That error is generated by the Cloudflare proxy. It happens automatically. For your /origin/ server you’ll need to block connections locally unless you’re utilizing Cloudflare Tunnel or Magic Transit.

Blocking on your origin would be done by your firewall or iptables or %similar%


Hi, thanks for answer. Could you tell me a bit detailer?

1 Like

Websites proxied by Cloudflare can’t be reached by using the IP address alone. On your origin server you need to lock that down to only accept connections from Cloudflare.

I’ve accepted 1 Cloudflare ipv4 and ipv6 and blocked my vds ip with this command iptables -I INPUT -p tcp -m multiport --dports http,https -s $myip -j DROP
But i still can join my site with vds ip

Not sure what VDS is… virtual desktop server? Well probably because the vds protocol in use isn’t included in your IP table rule… and it probably shouldn’t be.

You might look at Cloudflare Tunnel to protect your server if it’s behind a firewall.

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