WAF Demo
Last Updated: March 2025
Overview
The Cloudflare WAF is a Web Application Firewall that protects your HTTP/S web applications from common and new vulnerabilities. It mainly consists of the following components:
Take advantage of a multitude of fields and even functions to create rules.
For practical security recommendations and security rules examples, check out General Application Security Recommendations .
Security Analytics
Security Rules
Cloudflare-branded Managed Challenge
Cloudflare-branded Block
Custom-branded Managed Challenge
Use Custom Pages to create a custom-branded Managed Challenge. For advanced customization on errors, use the Custom Errors feature.
Block with Custom JSON Response
Use Custom Response to trigger an action on your native mobile application or for a service to use.
Leaked Credentials Detection Demo
This demo shows how Cloudflare's WAF can detect and prevent the use of leaked credentials in login attempts.
API Example
Test the leaked credentials detection using curl:
curl -s 'https://turnstile.automatic-demo.com/handler' \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'username=CF_EXPOSED_USERNAME@example.com&password=CF_EXPOSED_PASSWORD' \
-i Security Recommendations Database
Explore a curated database of security recommendations, rule templates, and best practices that you can adapt for your own security needs.