Block direct ip access to the website

How do I put direct ip access to the website?
In other words, they will get an error when they enter the site with their site main ip address.

What Error is getting shown?

It does not show an error. I want it to show.

Look like this;
I want it to show an error called access denied when they enter the site with a direct ip address.
Example website: http://104.27.8.116

That has to be done at your host, as direct IP to your server completely bypasses Cloudflare.

Generally, it’s a firewall setting that only allows cloudflare.com/ips through.

How can I do that. I am using windows vds.

I’m afraid Cloudflare doesn’t provide server admin support. You might try somewhere like Stackoverflow or Serverfault.

1 Like

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