How to protect a server's IP from being exposed?

I think I found a solution with setting CSP. I managed to allow images only from my domain, need time for the dough and I will share the decision.