How can I get the "Direct IP access not allowed" Cloudflare page when someone searches for my DigitalOcean droplet IP?

Hi. When I go to websites that find websites IPs like https://ipinfo.info and paste the IP into the browser I get the " Error 1003 - Direct IP access not allowed" page. However when I go to my DigitalOcean’s droplet’s IP address I see the actual page’s content (example.com) . How would I set it up so for both the IP in the online IP finders and my DigitalOcean’s droplet’s IP both lead to the " Error 1003 - Direct IP access not allowed" page? Thanks

That’s two different situations. Cloudflare’s servers are configured this way. You’ll have to find a way to do this for yours. stackoverflow.com is a good resource for this.

Personally, I just firewall off anything that doesn’t come through Cloudflare’s IP addresses.

@sdayman Hey thanks. So if I setup the firewall what would happen if someone tries to search for the ip address of my droplet directly in the browser? What would they see?

@sdayman

If I just firewall off anything that doesn’t come through Cloudflare’s IP addresses, what will the end user see when they visit my DigitalOcean’s droplet’s IP? @sdayman

I would suggest a bit of patience. But if guaranteed response times are required, I am sure sdayman can provide a Paypal address :wink:

2 Likes

They would get either a connection refused or timed out message.

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