{"id":1522,"date":"2020-06-07T21:49:16","date_gmt":"2020-06-07T13:49:16","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=1522"},"modified":"2026-01-09T11:52:48","modified_gmt":"2026-01-09T03:52:48","slug":"my-cpanel-cant-load-or-keep-logging-me-out-after-enabling-cloudflare","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/my-cpanel-cant-load-or-keep-logging-me-out-after-enabling-cloudflare","title":{"rendered":"Complete solution: My cPanel can\u2019t load or keep logging me out after enabling Cloudflare?"},"content":{"rendered":"<h4><\/h4>\n<h4><\/h4>\n<h4><img fetchpriority=\"high\" decoding=\"async\" class=\"\" src=\"https:\/\/docs.cpanel.net\/img\/howtologincpanellogin.png\" alt=\"How to Log in to Your Server or Account | cPanel &amp; WHM Documentation\" width=\"414\" height=\"261\" \/><\/h4>\n<h4>My cPanel can\u2019t load or keep logging me out after enabling Cloudflare?<\/h4>\n<p><strong>Symptom:<\/strong><br \/>\nYou can try to access your cPanel behind<a href=\"https:\/\/www.cloudflare.com\/\" rel=\"nofollow noopener\" target=\"_blank\"> Cloudflare<\/a> and are finding that on the first page load that no images (or stylesheets or javascript) load \u2013 and, when trying to navigate to any link, you are immediately logged out. The experience is as if cPanel were broken in some way.<\/p>\n<p><strong>Cause:<br \/>\n<\/strong><a href=\"https:\/\/www.cpanel.net\/\" rel=\"nofollow noopener\" target=\"_blank\">cPanel<\/a> has an option called \u201cCookie IP Validation\u201d. 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\u00a0https:\/\/www.cloudflare.com\/ips<\/p>\n<p><strong>Resolution:<\/strong><\/p>\n<p>The solution is to access the cPanel server on a URL that doesn\u2019t proxy through Cloudflare. Please use cPanel\u2019s proxy subdomain URL\u00a0http:\/\/cpanel.domain.com\u00a0and have the DNS point directly to the cPanel server which is a default DNS setting.<\/p>\n<p>Make sure this subdomain is not proxied through Cloudflare (not orange clouded).<\/p>\n<p>Note: Starting with version 64 of WHM this is no longer an issue. Although it is possible that under some conditions this will still be noted. If this is the case please apply the solution above.<\/p>\n<p>For further information, please Contact your<a href=\"https:\/\/www.servergigabit.com\/\"> hosting provider<\/a> or cPanel support if you still see issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My cPanel can\u2019t load or keep logging me out after enabling Cloudflare? Symptom: You can try to access your cPanel behind Cloudflare and are finding that on the first page load that no images (or stylesheets or javascript) load \u2013 and, when trying to navigate to any link, you are immediately logged out. The experience is as if cPanel were&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[43],"kbtag":[1124,1306],"class_list":["post-1522","kb","type-kb","status-publish","hentry","kbtopic-cloudflare","kbtag-cloudflare","kbtag-cpanel"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=1522"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1522\/revisions"}],"predecessor-version":[{"id":5553,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1522\/revisions\/5553"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=1522"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=1522"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=1522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}