Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sabrysuleiman/76a1738f8bc697aec56c5586f0321da9 to your computer and use it in GitHub Desktop.

Select an option

Save sabrysuleiman/76a1738f8bc697aec56c5586f0321da9 to your computer and use it in GitHub Desktop.
Cloudflare Security rules for Wordpress
(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