- A website firewall (WAF) inspects incoming web requests and blocks hacking attempts, fake form spam and brute-force logins before they hit your server.
- Cloudflare has local nodes in Johannesburg, Cape Town and Durban that speed up files locally while absorbing attack traffic.
- Lock down your hosting server IP so bots cannot bypass Cloudflare by connecting straight to your host.
- Limit repeat attempts on login and contact pages (
/wp-login.php,/api/contact/) while keeping payment notifications and Google's scanner unblocked. - A website firewall protects your perimeter, but you still need software updates, two-step logins and off-site backups.
In this guide (7 sections)6 min read
- 01Network firewalls vs Web Application Firewalls (WAF) decoded
- 02Why Cloudflare fits South African websites remarkably well
- 03Essential Cloudflare WAF and rate-limiting rules to set right away
- 04Audit firewall logs safely without blocking real clients or search bots
- 05Keep origin servers updated: a WAF is armour, not a magic cure
- 06Avoiding common Cloudflare proxy mistakes on South African sites
- 07Frequently asked questions
Network firewalls vs Web Application Firewalls (WAF) decoded
Counting on your hosting provider's basic Linux firewall to stop WordPress or checkout attacks leaves a wide gap. Real customers and automated attack bots both enter through the exact same HTTPS port 443.
| Security layer | What it blocks | What slips past it |
|---|---|---|
| Hosting server firewall | Unused network ports like SSH, FTP or remote database access | Plugin exploits, code injection and spam arriving over normal HTTPS web traffic |
| Cloudflare website firewall (WAF) | Vulnerability scanners, login floods, spam bots and traffic spikes | Stolen admin passwords without two-step login, or direct attacks on an exposed host IP |
| Locked-down app and access rules | Rogue admin changes, fake payment callbacks and risky uploads | Large traffic floods that overload your server before the app can respond |
Why Cloudflare fits South African websites remarkably well
Years ago, routing a South African site through overseas security proxies added noticeable lag to every page load. Today Cloudflare runs local servers inside Johannesburg, Cape Town and Durban, keeping domain lookups and cached files local while dropping attack noise before it reaches your host.
Fast local domain lookups and Full (Strict) HTTPS
Using Cloudflare for your domain settings (DNS) and traffic routing brings fast lookups, smaller compressed files and Full (Strict) HTTPS security alongside custom firewall rules.
Hide and lock down your real server IP address
If old domain history sites or email records reveal your real hosting server IP, bots can skip Cloudflare by talking straight to that IP. Restrict your hosting firewall to accept web traffic only from Cloudflare's network, and keep company email off your web server IP.
Essential Cloudflare WAF and rate-limiting rules to set right away
Beyond Cloudflare's default protections, adding a few simple custom rules stops the worst automated noise targeting .co.za sites:
- Limit repeated form sends on login and contact addresses (
/wp-login.php,/xmlrpc.php,/api/contact/) to stop password guessing and inbox spam. - Add extra checks or office IP limits on admin paths (
/wp-admin/, excludingadmin-ajax) if staff log in from steady South African offices. - Block automated bots poking at hidden files like
.env,.git,wp-config.php~and/backup.sqlat the edge. - Use gentle bot checks like Cloudflare Turnstile so automated spam browsers get stopped without slowing real buyers.
Audit firewall logs safely without blocking real clients or search bots
Turning on harsh firewall rules right before a busy sales weekend without testing can block mobile shoppers sharing carrier IP addresses or stop Google's scan of your site.
- Check Cloudflare Security > Events for 48 hours after adding a rule to catch false blocks against local mobile networks or search crawlers.
- Run URL Inspection > Test Live URL in Google Search Console (Google's free report on how your site shows up in search) to confirm Google reads your pages normally.
- Submit a test
/contact/enquiry and run a sandbox checkout payment callback to prove nothing is silently blocked.
Keep origin servers updated: a WAF is armour, not a magic cure
Think of a Cloudflare website firewall like strong security gates and glass on a warehouse. It stops drive-by break-ins and buys you calm time to patch new software flaws, yet you still need timely updates, two-step login checks, minimal admin users and verified off-site backups inside.
Avoiding common Cloudflare proxy mistakes on South African sites
Cloudflare works smoothly for most sites, yet two setup mistakes often trip small businesses up: turning the orange proxy cloud on for email subdomains, or caching dynamic admin and checkout pages.
Check these two points right after connecting any .co.za domain to Cloudflare:
- Keep Cloudflare Full (Strict) HTTPS mode turned on with a real certificate on your web host.
- Check Firewall Events once a month to make sure new rules drop bots without blocking normal local mobile networks.
- Block direct port-443 traffic from non-Cloudflare IPs on your hosting firewall so scanners cannot go around Cloudflare.
- Test new custom firewall rules in Log mode first before switching them to Block on live checkout pages.
Leave email domain records on 'DNS Only' (grey cloud)
Cloudflare only handles web traffic by default, so NEVER turn the orange proxy cloud on for mail., smtp., imap. or MX records. Proxying mail subdomains breaks Outlook and phone email sync and can leak your real server IP unless left on grey-cloud DNS Only (or handled separately by Microsoft 365 or Google Workspace).
Keep caching off admin bars, carts and dynamic checkouts
Set Cloudflare cache rules so images, stylesheets and scripts cache locally, while dynamic WordPress dashboards (/wp-admin/) and WooCommerce /cart/ or /checkout/ pages bypass caching. Pre-built static pages can cache safely across all edge servers.
Frequently asked questions
Will adding Cloudflare slow our South African website down?
No, a properly set up Cloudflare account usually makes your website faster on South African phones. Cloudflare runs local servers in Johannesburg, Cape Town and Durban, so visitors load images and pages from nearby nodes instead of waiting on a busy hosting server while bad traffic is filtered out.
Is Cloudflare Free sufficient for an ordinary SME service website?
Yes, Cloudflare's free plan gives most service businesses fast local domain lookups, basic flood protection, Full (Strict) HTTPS and custom rate-limit rules for login and contact forms. Larger online stores or busy client portals can upgrade to Cloudflare Pro for deeper managed web attack rules and image tools.
Why can attackers sometimes still bypass a WAF like Cloudflare?
Attackers usually bypass a website firewall in one of two ways. Either your raw hosting server IP remained open to the public so bots connected straight to the host instead of going through Cloudflare, or hackers used stolen admin passwords on accounts without two-step login protection.
Can enabling Cloudflare break company emails when updating nameservers?
Yes, it can break email if someone forgets to copy existing MX, SPF, DKIM and DMARC lines before switching nameservers, or turns the orange proxy cloud onto mail. or smtp. entries. Checking every email record first and leaving mail on grey-cloud 'DNS Only' avoids email outages.
Should we enable 'Under Attack Mode' permanently for extra safety?
No, never leave 'Under Attack Mode' turned on full time. It forces every human visitor to wait through a five-second browser check before seeing your site, which drives away mobile shoppers and can block payment callbacks or search crawlers. Save it only for active traffic floods and DDoS emergencies.

