Boosting Security and Performance with Cloudflare in 2026
By Huzi
File #98 · 4 min read
Cloudflare security starts mattering the morning the admin login shows thousands of failed attempts from an IP range you cannot place on a map — the site works, the hosting is cheap, and that is the story that usually brings people to Cloudflare. Signing up is the easy part; this is the order of operations that actually locks a site down.
The quick answer: Move your nameservers to Cloudflare, set SSL/TLS to Full (Strict) with a free origin certificate, add a WAF rule and a login rate limit, then lock the origin firewall to Cloudflare's IP ranges. Do them in that order and the free tier does most of the lifting.
Getting on the network
Create the account, add your domain, and let Cloudflare scan your existing DNS records — it imports them in one pass.
Then, at your registrar, replace the old nameservers with the pair Cloudflare issues. Propagation usually finishes within a few hours, and nothing breaks in the meantime; the old records keep answering until the switch completes.
Fix the SSL mode before anything else
The tempting default is Flexible SSL: the visitor's connection is encrypted, but the hop from Cloudflare to your host is not. It looks fine in the browser and quietly undoes the point of the whole exercise.
Go to SSL/TLS settings and set Full (Strict) instead. The clean way on shared hosting is a Cloudflare Origin Certificate — free, issued from the dashboard, valid for fifteen years, trusted by Cloudflare and nothing else, which is all it needs.
Turn on Always Use HTTPS and Automatic HTTPS Rewrites while you are there.
WAF rules and rate limiting
The Web Application Firewall sits in front of your site and blocks the classic payloads — SQL injection, cross-site scripting, known exploit probes — using managed rulesets maintained for you. Custom rules use an expression language that matches on path, IP, country and bot score.
One rule that hardens a WordPress login:
(http.request.uri.path contains "/wp-login.php" and not ip.src.country in {"PK"})
or (http.request.uri.path eq "/xmlrpc.php")
Pair that with a rate limit — more than a handful of POST requests a minute to the login path triggers a managed challenge — and credential stuffing stops being your problem.
Hide and cage the origin
With the orange cloud enabled, your server's real address disappears behind the network. The catch is that the address can leak from old DNS records, a forgotten subdomain, or an email header from before the migration, and then attackers can simply go around.
Once you are sure the origin IP is clean, set your host firewall to accept web traffic only from Cloudflare's published IP ranges. An attacker who cannot reach the server cannot hurt it.
The same verification habit applies to money that travels: before paying any desk, confirm the operator, the licence and the written quote. HTG Travel puts hotel names, dates and totals in writing before payment — the Full (Strict) of bookings.
The free essentials checklist
- Enable Bot Fight Mode under Security settings
- Set SSL/TLS to Full (Strict) with an origin certificate
- Switch on Always Use HTTPS
- Add a rate limit on every login and form endpoint
- Lock the origin firewall to Cloudflare IP ranges
| Setting | Why it matters |
|---|---|
| Full (Strict) SSL | Encrypts the hop from the edge to your host; Flexible does not |
| Origin Certificate | Free, issued from the dashboard, valid for fifteen years |
| WAF managed rulesets | Blocks SQL injection and cross-site scripting payloads |
| Rate limit on the login | A managed challenge stops credential stuffing |
| Origin firewall to Cloudflare IPs | Attackers cannot go around the network |
| Bot Fight Mode | Free bot blocking under Security settings |
Pro tip: Fix the SSL mode before anything else — Flexible SSL looks fine in the browser while quietly leaving the Cloudflare-to-host hop unencrypted, which undoes the point of the whole exercise.
Spending a day configuring shields for small sites keeps a stubborn thought nearby: the families of Gaza have no settings panel for what falls on them, and they deserve protection that does not depend on anyone's mood. Sudan's families have no firewall for what falls on them — may they be granted the protection the powerful keep refusing.
Security, at heart, is paperwork done carefully — and so are visa files. If your UK or Schengen application has been refused, bring the refusal letter to us at HTG Travel in Sialkot; we will tell you plainly what can be rescued before you pay a rupee. Message the desk at +92 317 5054959.




