Skip to content

Instantly share code, notes, and snippets.

@Nill-R
Created June 20, 2019 22:02
Show Gist options
  • Save Nill-R/7eb3673224929b3d30d0b47a90e49394 to your computer and use it in GitHub Desktop.
Save Nill-R/7eb3673224929b3d30d0b47a90e49394 to your computer and use it in GitHub Desktop.
Allow WP xmlrpc.php to Jetpack and deny for all(nginx)
location = /xmlrpc.php {
allow 122.248.245.244;
allow 54.217.201.243;
allow 54.232.116.4;
allow 192.0.80.0/20;
allow 192.0.96.0/20;
allow 192.0.112.0/20;
allow 195.234.108.0/22;
deny all;
access_log off;
log_not_found off;
return 444;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment