Skip to content

Instantly share code, notes, and snippets.

Alexander Bock alexander-bock

Block or report user

Report or block alexander-bock

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Secure-WordPress-on-NGINX.conf
#This file includes common security considerations for wordpress using nginx.
if ($request_method !~ ^(GET|POST|HEAD)$ ) {return 444;}
location ~* wp-admin/includes { deny all; }
location ~* wp-includes/theme-compat/ { deny all; }
location ~* wp-includes/js/tinymce/langs/.*.php { deny all; }
location = /xmlrpc.php { deny all; }
#Deny access to wp-content folders for suspicious files
You can’t perform that action at this time.