Skip to content
jagaweb.Book the Review
CDN & Edge

Fixing Cloudflare Routing to KUL/CJ1 POPs in Malaysia

4 min readBy JagaWeb Technical Team

Ensure Malaysian traffic hits Cloudflare's Cyberjaya/KUL POPs instead of routing via Hong Kong, US, or Singapore for optimal TTFB.

The Geography of Cloudflare Routing

Cloudflare has Edge nodes in Kuala Lumpur (KUL) and Johor Bahru (JHB). However, many Malaysian businesses notice their traffic being routed to Singapore (SIN), Hong Kong (HKG), or even Los Angeles (LAX).

This routing anomaly adds 50ms to 200ms to your Time To First Byte (TTFB), negating the benefits of a CDN.

1. Diagnosing the Routing Path

To see your current routing POP, run a simple curl command against the Cloudflare trace endpoint:

curl -s https://yourdomain.com/cdn-cgi/trace | grep colo

If it says colo=LAX, you have a routing issue.

2. Why Does This Happen?

Cloudflare routes traffic based on BGP (Border Gateway Protocol) peering agreements with ISPs (like TM Unifi, Maxis, or TIME). If you are on a Cloudflare Free plan, Cloudflare does not guarantee routing to the closest geographical POP. They route based on the cheapest transit cost. Often, TM Unifi traffic is cheaper to route to Singapore than to the Cyberjaya (CJ1) exchange.

3. How to Force Better Routing

  1. Upgrade to Pro/Business: Paid Cloudflare plans have higher routing priority and utilize better transit links, almost always ensuring KUL routing for Malaysian visitors.
  2. Argo Smart Routing: Enabling Argo (a paid add-on) forces Cloudflare to dynamically find the fastest path to your origin server, bypassing congested public internet routes.
  3. Check Your Origin IP Geolocation: Sometimes, the IP provided by your Malaysian host (e.g., ServerFreak) is incorrectly registered as a US IP in MaxMind or other GeoIP databases. Cloudflare thinks the server is in the US. Contact your host to correct their IP WHOIS records.

Is your CDN configuration actually hurting your performance? We optimize edge routing and network topologies for high-traffic sites like TechFix Malaysia, ensuring sub-50ms latency nationwide.

Stop guessing with network layers. Audit your infrastructure with JagaWeb's RM5,000 Ownership & Access Review, or let us manage your edge performance continuously via our RM450/month Care Plan.

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