Recommended Cloudflare Settings for Website

Berikut merupakan konfigurasi dasar yang direkomendasikan untuk meningkatkan performa dan keamanan situs Anda menggunakan Cloudflare.

SSL/TLS

Navigasikan ke SSL/TLS > Edge Certificates.

Aktifkan Automatic HTTPS Rewrites.

Automatic HTTPS Rewrites

Aktifkan HTTP Strict Transport Security (HSTS).

HTTP Strict Transport Security

Speed

Navigasikan ke Speed > Optimization.

Klik Enable all available setting untuk mengaktifkan beberapa pengaturan yang direkomendasikan.

recommend setting

Bila Rocket Loader aktif, sebaiknya dimatikan saja.

disable Rocket Loader

Aktifkan opsi Auto Minify.

enable Auto Minify

Scrape Shield

Navigasikan ke Scrape Shield.

Aktifkan Email Address Obfuscation dan Server-side Excludes

enable Scrape Shield

Caching

Navigasikan ke Caching > Configuration.

Disable Development Mode untuk memastikan website Anda agar di cache oleh Cloudflare.

disable Development Mode

Aktifkan Always Online

enable Always Online

Ubah Browser Cache TTL ke opsi Respect Existing Headers.

Browser Cache TTL

Rules

Navigasikan ke Rules.

Buat rule di Page Rules, kemudian atur konfigurasi cache.

create Page Rules

Kemudian buat rule di Transform Rules seperti berikut.

create Transform Rules

Network

Navigasikan ke Network.

Aktifkan IP Geolocation

enable IP Geolocation

Aktifkan WebSockets

enable WebSockets

Security

Navigasikan ke Security > Settings

Setting Security Level ke Medium.

Security Level