เว็บนี้มีลิงก์ affiliate — หากสมัครผ่านลิงก์ เราได้รับค่าคอมมิชชัน · Affiliate links. รายละเอียด

Cloudflare คืออะไร ตั้งค่าอย่างไร Free Plan ได้อะไรบ้าง

What is Cloudflare? How it works, free plan features, DNS and CDN setup for your Thai website.

Cloudflare คืออะไร ตั้งค่าอย่างไร Free Plan ได้อะไรบ้าง
แนะนำAsiaGB.com — Web Hosting & VPS คุณภาพสูง พร้อมทีม Support ภาษาไทย 24 ชั่วโมง SSD NVMe uptime 99.9%

AsiaGB.com — Premium hosting & VPS with Thai support, NVMe SSD, 99.9% uptime.

เยี่ยมชม AsiaGB →

Cloudflare คืออะไร

Cloudflare เป็นบริษัทที่ให้บริการ CDN, DNS, DDoS Protection และ Security สำหรับเว็บไซต์ ทำหน้าที่เป็น Reverse Proxy ที่อยู่ระหว่างผู้เข้าชมและเซิร์ฟเวอร์ของคุณ มี Free Plan ที่ให้ Feature มากมายสำหรับเว็บไซต์ทั่วไปโดยไม่มีค่าใช้จ่าย

Cloudflare is a company providing CDN, DNS, DDoS protection, and security for websites. It acts as a reverse proxy between visitors and your server. The Free plan offers extensive features for regular websites at no cost.

Cloudflare ทำงานอย่างไร

เมื่อผู้เข้าชมพิมพ์ URL เว็บคุณ DNS ชี้ไปที่ Cloudflare ก่อน Cloudflare ตรวจสอบว่า Content มีใน Cache ไหม ถ้ามีส่งจาก Data Center ใกล้ผู้เข้าชมเลย ถ้าไม่มีไปดึงจาก Origin Server แล้ว Cache ไว้ ระหว่างทางกรอง DDoS และ Bot ด้วย

When visitors access your site, DNS points to Cloudflare first. Cloudflare checks if content is cached — if yes, serves it from the nearest data center; if not, fetches from your origin server and caches it. DDoS attacks and bots are filtered during this process.

Cloudflare Free Plan ได้อะไรบ้าง

Free Plan ของ Cloudflare มี Feature มากมายสำหรับเว็บทั่วไป ได้แก่ CDN, DDoS Protection, Free SSL (Auto), DNS Management, Analytics พื้นฐาน, Workers (100,000 Request/วัน), Pages (Static Site Hosting), R2 Storage และ Turnstile (CAPTCHA Alternative)

Cloudflare Free Plan includes extensive features: CDN, DDoS protection, free auto-SSL, DNS management, basic analytics, Workers (100k requests/day), Pages (static site hosting), R2 storage, and Turnstile (CAPTCHA alternative).

การใช้ Cloudflare DNS

หนึ่งใน Feature ที่คนใช้มากที่สุดคือ DNS ของ Cloudflare ซึ่งเร็วที่สุดในโลก (1.1.1.1 Resolver) ย้าย Nameserver มา Cloudflare แล้วจัดการ DNS Record ทั้งหมดผ่าน Dashboard ได้ทันที DNS Propagation เร็วกว่าผู้ให้บริการอื่นมาก

One of Cloudflare's most-used features is its DNS — the world's fastest resolver (1.1.1.1). Move your nameservers to Cloudflare and manage all DNS records through the dashboard instantly. DNS propagation is much faster than other providers.

CDN และ Cache บน Cloudflare

Cloudflare Cache Static Files เช่น รูปภาพ, CSS, JS อัตโนมัติที่ Edge ใกล้ผู้เข้าชม ลด Bandwidth Origin Server และทำให้ผู้เข้าชมโหลดเร็วขึ้น สามารถตั้งค่า Cache Rules เพื่อควบคุมว่าไฟล์ไหน Cache นานแค่ไหน

Cloudflare automatically caches static files (images, CSS, JS) at edge locations near visitors, reducing origin server bandwidth and improving loading speed. Cache rules let you control what gets cached and for how long.

Security Feature ของ Cloudflare

Cloudflare มี Security Feature หลากหลาย ตั้งแต่ DDoS Protection อัตโนมัติ WAF (Web Application Firewall) ป้องกัน SQL Injection, XSS, Bot Management และ Rate Limiting Free Plan มี WAF Managed Rules บางส่วนฟรี

Cloudflare provides various security features: automatic DDoS protection, WAF protecting against SQL injection and XSS, bot management, and rate limiting. The Free plan includes some WAF managed rules at no cost.

ประสิทธิภาพที่ได้จาก Cloudflare

นอกจาก CDN แล้ว Cloudflare มี Performance Feature เพิ่มเติมเช่น Minify HTML/CSS/JS อัตโนมัติ, Brotli Compression, HTTP/2 และ HTTP/3, Early Hints และ Rocket Loader (โหลด JS Async)

Beyond CDN, Cloudflare offers additional performance features: automatic HTML/CSS/JS minification, Brotli compression, HTTP/2 and HTTP/3, Early Hints, and Rocket Loader (async JS loading).

วิธีตั้งค่า Cloudflare เบื้องต้น

1. สมัคร Cloudflare.com 2. เพิ่มเว็บไซต์และเลือก Free Plan 3. Cloudflare Scan DNS Record อัตโนมัติ 4. เปลี่ยน Nameserver ที่ Registrar ไปใช้ Cloudflare 5. รอ 24 ชั่วโมงให้ Propagate 6. เปิด SSL/TLS Mode เป็น Full (Strict) 7. เปิด Features ที่ต้องการ

Steps: 1. Sign up at Cloudflare.com 2. Add your site on Free plan 3. Cloudflare auto-scans DNS records 4. Change nameservers at your registrar to Cloudflare 5. Wait up to 24 hours for propagation 6. Set SSL/TLS mode to Full (Strict) 7. Enable desired features.

Free Plan เพียงพอสำหรับเว็บส่วนใหญ่ Pro ($20/เดือน) เพิ่ม WAF Advanced, Image Optimization, Browser Insights, 20 Page Rules Business ($200/เดือน) เพิ่ม Custom WAF Rules, Cache Analytics, PCI Compliance

Free plan suits most websites. Pro ($20/mo) adds Advanced WAF, Image Optimization, Browser Insights, and 20 Page Rules. Business ($200/mo) adds Custom WAF Rules, Cache Analytics, and PCI Compliance.

คำถามที่พบบ่อย (FAQ)

Cloudflare ทำให้เว็บเร็วขึ้นได้จริงไหม?
ใช่ โดยเฉพาะสำหรับ Static Content (รูป CSS JS) ที่ Cache ที่ Cloudflare Edge ใกล้ผู้เข้าชม ทำให้โหลดเร็วขึ้น 30-70% สำหรับ Dynamic Content ช่วยได้น้อยกว่าเพราะต้องไป Origin เสมอ แต่ HTTP/2 HTTP/3 ยังช่วยได้บ้าง
Cloudflare ทำให้ SEO ดีขึ้นหรือแย่ลง?
โดยรวม Cloudflare ช่วย SEO เพราะทำเว็บเร็วขึ้น (Speed เป็น Ranking Factor) และ SSL ฟรี แต่ถ้าตั้งค่า Cache ผิด (Cache Dynamic Page ที่ต้องการ Login) อาจมีปัญหา ควรตั้ง Cache Rule ให้ถูกต้อง
Cloudflare Free กับ Free SSL ของ Hosting ต่างกันอย่างไร?
Free SSL ของ Hosting มักเป็น Let's Encrypt ที่ติดตั้งบน Server โดยตรง Cloudflare SSL เป็น Certificate ที่ Edge (ระหว่างผู้เข้าชมกับ Cloudflare) ถ้าใช้ Cloudflare แนะนำ Full Strict Mode เพื่อให้ SSL ครบทั้ง Edge และ Origin
อยากใช้ Cloudflare กับ Email ได้ไหม?
Email ทำงานผ่าน MX Record ซึ่ง Cloudflare ไม่ Proxy (MX ไม่มี Orange Cloud) DNS-only เท่านั้น ดังนั้น Email ยังทำงานปกติผ่าน Mail Server เดิม Cloudflare มี Email Routing (Beta) ที่ Forward Email ได้ฟรีด้วย