My cPanel won't load or keeps logging me out after enabling Cloudflare

Symptom:
You try to access your cPanel behind Cloudflare and are finding that on the first page load that no images (or stylesheets or javascript) load - and, when trying to navigate to any link, you are immediately logged out. The experience is as if cPanel were broken in some way.

Cause: 
cPanel has an option called "Cookie IP Validation". This setting checks that the IP address that the visitor originally came from matches their IP address on subsequent requests. With Cloudflare, the IP address for requests to your server can variably come from any IP address in the list at https://www.cloudflare.com/ips

Resolution:
The solution is to access the cPanel server on a URL that doesn't proxy through Cloudflare. Please use cPanel's proxy subdomain URL http://cpanel.domain.com and have the DNS point directly to the cPanel server which is a default DNS setting.
Make sure this subdomain is not proxied through Cloudflare (not orange clouded).

Still not finding what you need?

The CloudFlare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk