Last active
January 8, 2026 16:47
-
-
Save sabrysuleiman/76a1738f8bc697aec56c5586f0321da9 to your computer and use it in GitHub Desktop.
Cloudflare Security rules for Wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (http.request.uri.path contains "/wp-comments-post.php") | |
| or (http.request.uri.path contains "/wp-content/uploads/" and http.request.uri.path contains ".php") | |
| or (http.request.uri.path contains "xmlrpc.php") | |
| or (http.request.uri.path contains "/wp-content/themes/" and http.request.uri.path contains ".php") | |
| or (http.request.uri.path contains "/wp-content/plugins/" and http.request.uri.path contains ".php") | |
| or (http.request.uri.path contains "readme.html") | |
| or (http.request.uri.path contains "license.txt") | |
| or (http.request.uri.path contains "wp-config.php") | |
| or (http.request.uri.path contains ".env") | |
| or (http.request.uri.path contains ".git") | |
| or (http.request.uri.path contains "wp-admin/install.php") | |
| or (http.request.uri.path contains "wp-admin/setup-config.php") | |
| # only if not used | |
| or (http.request.uri.path contains "/wp-json/") | |
| # only after change loginurl | |
| or (http.request.uri.path contains "/wp-login.php") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment