Created
June 20, 2019 22:02
-
-
Save Nill-R/7eb3673224929b3d30d0b47a90e49394 to your computer and use it in GitHub Desktop.
Allow WP xmlrpc.php to Jetpack and deny for all(nginx)
This file contains 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
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