Skip to content

Domain, hosting, code and data — in your name, in writing

jagaweb
Hosting & Infrastructure

Cloudflare for Malaysian Business Websites: Setup Guide

•3 min read•By Chandra Rau

Setting up Cloudflare for a Malaysian business site: what the free plan does, which SSL mode to pick, and caching rules that won't break checkout.

Short answer: Cloudflare sits between your visitors and your web server. It caches static files close to the visitor, absorbs attack traffic, and can provide the HTTPS certificate visitors see. For most Malaysian business sites the free plan is enough to start. Cloudflare lists data centres in Kuala Lumpur, Johor Bahru and Kuching on its network map. Three settings decide whether it helps or hurts: the SSL mode (use Full (strict)), cache rules that never cache logged-in pages, carts or forms, and DNS records moved over completely, including email records.

What Cloudflare does (and doesn't do)

Does: global CDN caching for images, CSS and JavaScript; DDoS mitigation; a Web Application Firewall (fuller rulesets on paid plans); free edge SSL certificates; DNS hosting; bot controls.

Doesn't: make a slow server fast for uncached pages, fix a hacked site, or back up your website. If your server takes two seconds to build every page, Cloudflare only hides that for pages it can cache (why is my WordPress site slow).

Setup, step by step

  1. Export your current DNS before you start, and screenshot it too.
  2. Add the site to Cloudflare and let it scan your records. Then check them line by line against your export. The ones most often missed are MX, SPF/DKIM/DMARC TXT records and verification records. Missing email records break company email (moving a site without breaking email).
  3. Proxy (orange cloud) only the web records (@ and www). Mail and other service records stay DNS only (grey cloud).
  4. Change the nameservers at your registrar to the two Cloudflare gives you. For .my domains this is done in your registrar's panel.
  5. Set SSL/TLS to Full (strict). This requires a valid certificate on your server too: your host's free certificate or a Cloudflare Origin CA certificate. Avoid Flexible, which leaves the hop between Cloudflare and your server unencrypted and often causes redirect loops on WordPress.
  6. Turn on "Always Use HTTPS" and check the site for mixed-content warnings.

Caching without breaking things

  • Cache static files (images, CSS, JS) aggressively.
  • If you use full-page caching, bypass it for /wp-admin, /wp-login.php, cart, checkout and account pages, and for any request carrying WordPress login or WooCommerce session cookies.
  • Purge the cache after deployments and updates.

A wrong cache rule is the most common way Cloudflare breaks contact forms (a cached form with an expired security token) or shows one customer's cart to another.

Common Cloudflare errors

ErrorMeaningFirst check
521Your server refused the connectionIs the web server running? Is a firewall blocking Cloudflare's IP addresses?
522Connection timed outServer overloaded, or the origin IP in DNS is wrong
525 / 526SSL handshake failed / invalid origin certificateOrigin certificate expired or missing under Full (strict) (SSL expired)
Too many redirectsSSL mode Flexible plus a WordPress redirect to HTTPSSwitch to Full (strict)

Cloudflare's own 5xx troubleshooting guide covers each code in detail. For outages generally, see website down? check this first.

Who should own the Cloudflare account?

Your company should. Cloudflare now controls your DNS, so whoever holds the account controls your website and email routing. Create it with a company email address, add your developer or care provider as a member, and turn on two-factor authentication (DNS records explained).

JagaWeb's Website Speed & Security CPR (RM650 fixed before SST) includes Cloudflare CDN configuration, database clean-up, PHP and plugin compatibility fixes and server firewall hardening. It is fully credited toward any Care plan within 14 days. See pricing, or start with the free website check.

FAQ

Is Cloudflare free? There is a free plan that covers the CDN, DNS, edge SSL and basic DDoS protection. Paid plans add more firewall rules, image optimisation and support.

Does Cloudflare have servers in Malaysia? Cloudflare's network map lists Kuala Lumpur, Johor Bahru and Kuching among its locations. Which one serves a visitor depends on their network's routing.

Will Cloudflare break my WordPress site? Not if you use Full (strict) SSL, keep email records unproxied, and exclude admin, cart and checkout pages from page caching.

If you suspect an active compromise, see hacked website repair in Malaysia.

PROTECT YOUR ASSETS

Ready to verify who owns your website?

Replace uncertainty with a decision-ready ownership and access report. The fixed Ownership & Access Review is RM1,500 before SST and includes a 30-day action plan.

WhatsApp
WhatsAppFree website check