How to Allow All Cloudflare IPs in SafeLine WAF

When your website or app is behind Cloudflare, all incoming requests appear to come from Cloudflare’s IP addresses rather than your visitors’ original IPs. To ensure your SafeLine WAF doesn’t mistakenly block legitimate traffic, you should whitelist Cl…


This content originally appeared on DEV Community and was authored by Sharon

When your website or app is behind Cloudflare, all incoming requests appear to come from Cloudflare’s IP addresses rather than your visitors’ original IPs. To ensure your SafeLine WAF doesn’t mistakenly block legitimate traffic, you should whitelist Cloudflare’s official IP ranges.

Why Whitelist Cloudflare IPs?

  • Avoid false positives: Ensures your WAF doesn’t block Cloudflare’s reverse proxy servers.
  • Improved performance: Reduces unnecessary filtering on trusted network traffic.
  • Essential for CDN and security services: Many Cloudflare features (e.g., DDoS mitigation, caching, WAF) require your backend to trust their IPs.

SafeLine WAF Rule Example

Rule library snapshot:

  • Whitelist rules: 1
  • Blacklist rules: 0
  • SafeLine version supported: 7.3.0 and above

Rule details:

  • Type: Whitelist
  • Condition: Allow requests from all IP ranges published by Cloudflare

Cloudflare regularly updates its IP ranges, so it’s best practice to check their official list and update your SafeLine configuration accordingly.

Official source: https://www.cloudflare.com/ips/

How to Implement in SafeLine

  1. Go to the SafeLine WAF management console.
  2. Create a new whitelist rule.
  3. Add Cloudflare’s IP ranges (both IPv4 and IPv6) as conditions.
  4. Save and deploy the rule.
  5. Periodically review Cloudflare’s IP list for updates.

Join the SafeLine Community

If you continue to experience issues, feel free to contact SafeLine support for further assistance.


This content originally appeared on DEV Community and was authored by Sharon


Print Share Comment Cite Upload Translate Updates
APA

Sharon | Sciencx (2025-08-28T06:48:54+00:00) How to Allow All Cloudflare IPs in SafeLine WAF. Retrieved from https://www.scien.cx/2025/08/28/how-to-allow-all-cloudflare-ips-in-safeline-waf/

MLA
" » How to Allow All Cloudflare IPs in SafeLine WAF." Sharon | Sciencx - Thursday August 28, 2025, https://www.scien.cx/2025/08/28/how-to-allow-all-cloudflare-ips-in-safeline-waf/
HARVARD
Sharon | Sciencx Thursday August 28, 2025 » How to Allow All Cloudflare IPs in SafeLine WAF., viewed ,<https://www.scien.cx/2025/08/28/how-to-allow-all-cloudflare-ips-in-safeline-waf/>
VANCOUVER
Sharon | Sciencx - » How to Allow All Cloudflare IPs in SafeLine WAF. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/08/28/how-to-allow-all-cloudflare-ips-in-safeline-waf/
CHICAGO
" » How to Allow All Cloudflare IPs in SafeLine WAF." Sharon | Sciencx - Accessed . https://www.scien.cx/2025/08/28/how-to-allow-all-cloudflare-ips-in-safeline-waf/
IEEE
" » How to Allow All Cloudflare IPs in SafeLine WAF." Sharon | Sciencx [Online]. Available: https://www.scien.cx/2025/08/28/how-to-allow-all-cloudflare-ips-in-safeline-waf/. [Accessed: ]
rf:citation
» How to Allow All Cloudflare IPs in SafeLine WAF | Sharon | Sciencx | https://www.scien.cx/2025/08/28/how-to-allow-all-cloudflare-ips-in-safeline-waf/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.