Skip to content

Instantly share code, notes, and snippets.

@epatr
Created December 10, 2019 22:15
Show Gist options
  • Save epatr/0a6b085dec894846d7b604d40ab08655 to your computer and use it in GitHub Desktop.
Save epatr/0a6b085dec894846d7b604d40ab08655 to your computer and use it in GitHub Desktop.
location = /xmlrpc.php {
deny all;
access_log off;
log_not_found off;
}
location ~* /wp-includes/.*.php$ {
deny all;
access_log off;
log_not_found off;
}
location ~* /wp-content/.*.php$ {
deny all;
access_log off;
log_not_found off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment