My Cloudflare WAF rules to protect websites
(http.request.method eq "POST" and ip.geoip.country eq "T1")
(http.request.uri.path contains "/wp-login.php")
(http.request.uri.path eq "/wp-admin" or http.request.uri.path eq "/wp-admin/") and not http.cookie contains "wordpress_logged"
not http.request.uri.path contains "/wp-" and (http.request.uri.path contains ".zip" or http.request.uri.path contains ".sql" or http.request.uri.path contains ".gz" or http.request.uri.path contains ".bak" or http.request.uri.path contains ".tar")
(http.request.uri.path contains "/wp-content/" and http.request.uri.path contains ".php")
(http.request.uri.path contains ".asp")
(http.request.uri.path contains "/wp-config")
(http.request.uri.path contains "/xmlrpc.php" and http.request.method eq "POST")
!((http.request.uri.path eq "/") or (http.request.uri.path eq "/index.html") or (http.request.uri.path eq "/en") or (http.request.uri.path eq "/en/") or (http.request.uri.path eq "/en/index.html") or (http.request.uri.path eq "/robots.txt") or (http.request.uri.path contains "/feed") or (http.request.uri.path eq "/style.css") or (http.request.uri.path eq "/favicon.ico") or (http.request.uri.path contains "/images/") or (http.request.uri.path contains "/sitemap"))
(http.request.method in {"POST" "PUT" "DELETE" "PATCH"})