{"id":8040,"date":"2026-11-30T16:20:35","date_gmt":"2026-11-30T15:20:35","guid":{"rendered":"https:\/\/www.webhostingsrbija.rs\/?p=8040"},"modified":"2026-11-30T16:20:35","modified_gmt":"2026-11-30T15:20:35","slug":"cloudflare-podesavanje","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/cloudflare-podesavanje\/","title":{"rendered":"How to connect a site to Cloudflare (WHS panel and cPanel)"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Cloudflare stands in front of your site: visitors first arrive at the Cloudflare network, and only then does it ask your server. You get faster loading from the cache closer to the visitor, attack protection and free DNS. The basic package is free and sufficient for most sites.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Cloudflare works with your domain<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The domain's nameservers go to Cloudflare.<\/strong> From that moment on, you change DNS records (A, MX, TXT) on Cloudflare, not in the panel.<\/li>\n\n\n\n<li><strong>Orange Cloud (Proxied, \u201eVia Cloudflare\u201c)<\/strong> means that the traffic goes through Cloudflare and the real IP address of the server is hidden. <strong>Gray Cloud (DNS only)<\/strong> means that Cloudflare only resolves the name.<\/li>\n\n\n\n<li><strong>Mail records<\/strong> (mail, MX, autodiscover) must remain on the gray cloud, otherwise mail stops working.<\/li>\n\n\n\n<li><strong>SSL mode<\/strong> on Cloudflare set to <strong>Full<\/strong> or <strong>Full (strict)<\/strong>. Flexible mode does an infinite redirect when Force HTTPS is enabled on the server.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to add a domain to Cloudflare<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a free account at <a href=\"https:\/\/www.cloudflare.com\/\" target=\"_blank\" rel=\"noopener\">cloudflare.com<\/a>.<\/li>\n\n\n\n<li>Click <strong>Add a domain<\/strong>, enter the domain and select <strong>Free<\/strong> plan.<\/li>\n\n\n\n<li>Cloudflare itself reads the existing DNS records. Check that there is an A record for the site and MX for the mail, and that the mail is on the gray cloud.<\/li>\n\n\n\n<li>Cloudflare gives you two nameservers. Enter them at the domain registry instead of ours. If the domain is with us, see <a href=\"https:\/\/www.webhostingsrbija.rs\/en\/izmena-nameservera\/\">Changing nameservers<\/a>.<\/li>\n\n\n\n<li>After a few hours (with .rs domains often even faster) Cloudflare reports that the domain is active.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">First log in to your panel<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Log in <a href=\"https:\/\/cp.webhostingsrbija.rs\/\">client panel<\/a>, for hosting click <strong>Edit<\/strong>, so <strong>AutoLogin Panel<\/strong>. In detail: <a href=\"https:\/\/www.webhostingsrbija.rs\/en\/reset-cpanel-lozinke-ili-auto-login-na-cpanel\/\">Reset Password Panel or AutoLogin Panel<\/a>.<\/p>\n\n\n\n<style>html{scroll-behavior:smooth}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}.whs-pt{margin:28px 0 8px;padding:18px;border:1px solid #dbe7f0;border-radius:14px;background:#f4f8fb}.whs-pt-q{margin:0 0 12px;font-weight:600;color:#0e3c6e}.whs-pt-nav{display:flex;gap:10px;flex-wrap:wrap}.whs-pt-nav a.whs-pt-btn{flex:1 1 180px;display:flex;align-items:center;justify-content:center;padding:14px 18px;border-radius:10px;font:600 17px\/1.2 Roboto,Arial,sans-serif;text-decoration:none;text-transform:none;letter-spacing:0;color:#fff;background:#00a0d2;border:2px solid #00a0d2;transition:filter .15s}.whs-pt-nav a.whs-pt-btn.cp{background:#ff6c2c;border-color:#ff6c2c}.whs-pt-nav a.whs-pt-btn:hover,.whs-pt-nav a.whs-pt-btn:focus-visible{filter:brightness(1.1);color:#fff}.whs-pt-hint{margin:12px 0 0;font-size:14px;color:#4a5b6b}.whs-pt-panel{scroll-margin-top:90px}.whs-pt-label{display:inline-block;margin:0 0 6px;padding:3px 10px;border-radius:20px;background:#00a0d2;color:#fff;font-size:13px;font-weight:600}.whs-pt-label.cp{background:#ff6c2c}.entry-content .wp-block-image img{box-sizing:border-box;padding:10px;background:#e9eef3;border:1px solid #b9c7d4;border-radius:10px;box-shadow:0 6px 18px rgba(14,60,110,.18)}.entry-content .wp-block-image{margin-block:22px}<\/style>\n<div class=\"whs-pt\">\n<p class=\"whs-pt-q\">What panel are you using? Click and go directly to your instruction.<\/p>\n<nav class=\"whs-pt-nav\" aria-label=\"Instructions per panel\">\n<a class=\"whs-pt-btn\" href=\"#whs\">WHS panel<\/a>\n<a class=\"whs-pt-btn cp\" href=\"#cpanel\">cPanel<\/a>\n<\/nav>\n<p class=\"whs-pt-hint\">Don't know which one you have? The WHS panel has a menu on the left (Control Panel, Domains, Email...). cPanel on the home page has icons arranged by groups (Email, Files, Databases, Domains) and the inscription cPanel at the bottom of the page.<\/p>\n<\/div>\n\n\n\n<div id=\"whs\" class=\"wp-block-group whs-pt-panel is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<span class=\"whs-pt-label\">WHS panel<\/span>\n\n\n\n<h2 class=\"wp-block-heading\">Cloudflare in the WHS panel<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The WHS panel has a built-in Cloudflare integration, so you connect and configure the domain from the panel. Open in the left menu <strong>Security<\/strong> well <strong>Cloudflare<\/strong>. The table shows for each domain whether Cloudflare is on, SSL mode and proxy.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6b0eebdfc78e8&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b0eebdfc78e8\" class=\"wp-block-image wp-lightbox-container\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1440\" height=\"580\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-2611.webp\" alt=\"Cloudflare integracija u WHS panelu\" class=\"wp-image-8038\" title=\"\" srcset=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-2611.webp 1440w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-2611-300x121.webp 300w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-2611-1024x412.webp 1024w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-2611-768x309.webp 768w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-2611-18x7.webp 18w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Security, Cloudflare: Status by Domain and Enable Button.<\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>On Cloudflare, create <strong>API token<\/strong> (not Global API Key) with permission <strong>Zone, DNS, Edit<\/strong>. Other permissions from the list (Zone Settings, Cache Purge, Firewall, WAF, Bot Management, Analytics) unlock additional functions in the panel. Link <strong>Create a token on Cloudflare<\/strong> It leads straight to that side.<\/li>\n\n\n\n<li>In the WHS panel, click on the domain code <strong>Turn on<\/strong>.<\/li>\n\n\n\n<li>Paste the token into the field. <strong>Cloudflare API token<\/strong> and click <strong>Okay<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6b0eebdfca18a&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b0eebdfca18a\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" width=\"620\" height=\"758\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-dodaj-2611.webp\" alt=\"Dijalog Uklju\u010di Cloudflare u WHS panelu\" class=\"wp-image-8039\" title=\"\" srcset=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-dodaj-2611.webp 620w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-dodaj-2611-245x300.webp 245w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/11\/whs-cf-dodaj-2611-10x12.webp 10w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Required token permissions and token field.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After connecting, select the mode from the panel <strong>Through Cloudflare<\/strong> or <strong>DNS only<\/strong>, and the button <strong>Refresh status<\/strong> pulls the current state from Cloudflare.<\/p>\n\n\n<\/div><\/div>\n\n\n\n<div id=\"cpanel\" class=\"wp-block-group whs-pt-panel is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<span class=\"whs-pt-label cp\">cPanel<\/span>\n\n\n\n<h2 class=\"wp-block-heading\">Cloudflare and cPanel<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel on our servers does not have the Cloudflare plugin built in, so everything is set up on Cloudflare itself (steps above). You don't have to change anything in cPanel for the site to work.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After switching nameservers, DNS records from cPanel <strong>Zone Editor<\/strong>- and are no longer valid. Record each change (eg new subdomain, TXT for Google or email service) on Cloudflare.<\/li>\n\n\n\n<li>When you add a new domain or subdomain in cPanel, add an A record on Cloudflare for it, otherwise it won't open.<\/li>\n\n\n\n<li>If cPanel keeps logging you out or looks weird after enabling Cloudflare, open it via <strong>AutoLogin Panel<\/strong> from the client panel, or post a record <code>cpanel<\/code> on a gray cloud.<\/li>\n\n\n\n<li>Free SSL on the server (AutoSSL) still works, and it keeps SSL mode on Cloudflare <strong>Full<\/strong>.<\/li>\n<\/ul>\n\n\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">The site or mail does not work after switching on<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The most common causes are: mail records are on the orange cloud (turn them back to gray), SSL mode is Flexible (switch to Full), or Cloudflare has not downloaded a DNS record (add it manually). If you can't find the problem, temporarily pause Cloudflare in its control panel and contact support.<\/p>","protected":false},"excerpt":{"rendered":"<p>Cloudflare stoji ispred tvog sajta: posetioci prvo sti\u017eu na Cloudflare mre\u017eu, a ona tek onda pita tvoj server. Dobija\u0161 br\u017ee u\u010ditavanje iz ke\u0161a bli\u017ee posetiocu, za\u0161titu od napada i besplatan DNS. Osnovni paket je besplatan i dovoljan za ve\u0107inu sajtova. Kako Cloudflare radi sa tvojim domenom Kako da doda\u0161 domen na Cloudflare Prvo se prijavi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":112,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[210,20,22,18,203],"tags":[],"class_list":["post-8040","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bezbednost-panel","category-cpanel","category-domeni","category-kako","category-whs-panel"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/8040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=8040"}],"version-history":[{"count":1,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/8040\/revisions"}],"predecessor-version":[{"id":8041,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/8040\/revisions\/8041"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=8040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=8040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=8040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}