Allowing only my partner ip address

My website access is allowed only for whitelist partner ip address (using iptables and htaccess), so when using cloudflare as proxy i got a failure response from my server because cloudflare ip address not added to our iptables & htaccess.

Is it any idea about how to deal with this issue?
Remember i dont want to list my partner ip address on cloudflare.

Thank you

If your iptables says Cloudflare IP address is not allowed, then it’s not allowed. If you want Cloudflare to communicate with your web server, then whitelist Cloudflare IP address in iptables and .htaccess.

1 Like

yes, i see, but my question how can we restrict access only to our partner ip address by using CloudFlare.

Thank you

1 Like

Check out the CF-Connecting-IP header or the complimentary plugins for common web servers:

https://support.cloudflare.com/hc/en-us/sections/200805497-Restoring-Visitor-IPs

Thank you @TKlein

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