LLevelUp
0
← Back to topic

WAF and Rate Limiting

Cloudflare security tools sit before your app. The WAF blocks known attack patterns. Rate limiting slows abusive traffic. Bot controls challenge suspicious clients.

Good paths to protect first:

  • /login
  • /api/auth/*
  • /api/upload/*
  • expensive search or export endpoints
if path starts_with "/api/auth/" and requests > 20 per minute then challenge

WARNING

Security rules can block real users. Roll out carefully and watch logs before making rules too aggressive.

Further Learning

  • “Cloudflare WAF custom rules” — request filtering
  • “Cloudflare rate limiting rules” — abuse control
  • “Cloudflare security events” — reviewing blocks and challenges