Prevent hits to my load balancer that is behind cloudflare DNS

Hello,
a noob question:

I’ve successfully configured Cloudflare to sit in front of our load balancer.

the DNS configuration in Cloudflare looks like

CNAME nb-XX-XXX-XXX-XXX.newark.nodebalancer.linode.com

so our domain looks good at htpp//mydomain.com/api which hits that loadbalancer(SSL configured)"

HOWEVER,
Anyone can still get to { htpp//nb-XX-XXX-XXX-XXX.newark.nodebalancer.linode.com/api} bypassing Cloudflare… is there a way to prevent this?

You’d need to configure your load balancer to only accept connections from Cloudflare addresses and drop everything else.

1 Like

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