Configuring Cloudflare WAF, Rate Limiting, and DDoS Mitigation Rules
Protect websites and public API endpoints from malicious scraper bots, Layer 7 HTTP floods, and credential stuffing.
In brief
- Block Layer 7 attacks using Cloudflare WAF and Rate Limiting rules.
- You should enable the most effective rules from the Cloudflare dashboard.
- Automate DNS configuration by connecting your domain through the Clodo panel.
What you need
- An active zone in Cloudflare
- An HTTP/HTTPS service that can be proxied (orange cloud)
- A valid certificate on the origin (required for Full strict)
On this page
Website & WordPress guides
With Orange Cloud active, incoming web traffic is scrubbed at Cloudflare's global edge. Custom WAF rules and Rate Limiting inspect requests in flight, blocking Layer 7 application assaults before touching host infrastructure.
Open the domain card
Opens the domain and Cloudflare card for your selected service in the panel.
- Opens the domain card in the service overview
If you have a Clodo service you can jump straight to the right panel tab. This card does not change anything on your service.
Cloudflare Edge WAF & Layer 7 Scrubbing Pipeline
Step-by-step scrubbing sequence intercepting malicious requests at the global edge.
Inbound Web Requests
Legitimate users, indexing spiders, and malicious scanners.
Cloudflare Anycast Edge
Volumetric L3/L4 floods are absorbed at the Cloudflare edge closest to the source, before traffic reaches the origin.
WAF & Bot Fight Mode
Drops SQL injection, XSS vectors, and automated headless scrapers.
Rate Limiting Engine
Prompts Turnstile challenge to IPs exceeding 60 requests per minute.
Clodo Origin Node
Requests that pass the filters reach your server. As long as your origin IP stays hidden, an attacker cannot bypass this step.
1. Top 3 Defensive WAF Rules#
Kural 1: Login Brute-Force Korumasi
If: (http.request.uri.path contains "/wp-login.php" or http.request.uri.path contains "/api/auth/login")
Then: Managed Challenge (Cloudflare Turnstile)
Kural 2: Bilinen Tehlikeli Tehdit Skorlari
If: (cf.threat_score gt 14)
Then: Interactive Challenge
Kural 3: Rate Limiting (Aşırı İstek Engelleme)
Eşik: 10 saniyede 50'den fazla istek atan IP'leri 1 saat boyunca Block et.How to Implement This?
Clodo Control Panel Quick Method
Cloudflare IntegrationThe Cloudflare integration in the Clodo panel creates the DNS records and origin rule for you when you attach a domain; you then enable the WAF rules from the Cloudflare dashboard.
Step-by-step Execution:
- 1Authorize your Cloudflare account from the Domain card on the service detail page.
- 2Pick your zone; a proxied CNAME record and origin rule are created for you and your origin IP stays behind the proxy.
- 3Enable WAF, Bot Fight Mode and rate limiting from the Cloudflare dashboard using the steps in this guide.
Frequently Asked Questions
Does enabling WAF rules consume my server's resources?
No, WAF and Rate Limiting filters run directly at Cloudflare's network edge. Unwanted requests are stopped before reaching your server, preserving your system resources.
How should I determine the Rate Limiting threshold?
You should base it on the normal browsing patterns of legitimate visitors. Setting the threshold too low may inadvertently block real users.
Why is it critical to keep the origin IP address hidden?
If attackers discover your real server IP, they can bypass Cloudflare and target your origin directly. Keeping your origin IP private ensures all traffic passes through edge filtering.
Was this guide helpful?
Feedback goes straight to the team that maintains this guide.
Could not find a solution?
You can open a request with our support team from the panel.

