SPF TXT record, how to hide server ip address?

Hi, I'm new here and this server is overwhelming to find the right spot to post about this.

I am trying to keep my server ip address private since I'm using cloudflare. I need to set up a spf record.

When I have the TXT record as:
v=spf1 ip4:5.5.5.5 include:_spf.cloudflare.com ~all it works, but it exposes the ip address.

If I take off the server ip address, this doesn't work:
v=spf1 include:_spf.cloudflare.com ~all.

Does anyone know what I'm doing wrong? Thanks!
Was this page helpful?