Can You Access a Website Using Another IP Address? How Does It Work? Alternatively, if you want a slightly m

20 Replies, 1255 Views

Wait, so can you access a website using another ip address if the domain’s DNS is down? Like, if you have the IP but the domain isn’t resolving?

Technically yes, but many sites use virtual hosts, so the server won’t serve the right content without the domain name. Some CDNs like Cloudflare might still block direct IP access too.

For testing, you could try curl with the Host header, like:
`curl -H "Host: example.com" http://1.2.3.4`

Messages In This Thread



Users browsing this thread: 1 Guest(s)