gevema2449
gevema2449

Reputation: 3

Cloudflare - How to hide website's server IP address from the beginning itself?

There's a website example.com served at 1.2.3.4

Currently you need to point your registrar's DNS to 1.2.3.4 Then you need to add your site to cloudflare . And then you need to change the DNS records at registrar to point to Cloudflare DNS.New cloudflare IP returned during DNS query is 5.6.7.8 But if an attacker(or a user) accessed the website when it didn't have cloudflare protection, they can still have the old ip 1.2.3.4 and attack it.

How to hide the origin server IP from the beginning itself (before the site is launched?) so that 1.2.3.4 is hidden from the moment site comes online?

Upvotes: 0

Views: 2779

Answers (2)

Martheen
Martheen

Reputation: 5580

Buy the domain, don't add any record to it yet, set the nameserver to Cloudflare, and only then add the orange record, which point to an actual IP

Upvotes: 1

Jan Janssen
Jan Janssen

Reputation: 185

block the port for non-cloudflare IP ranges

Upvotes: 2

Related Questions