Skip to content

Instantly share code, notes, and snippets.

@endurtech
Last active July 17, 2019 21:44
Show Gist options
  • Select an option

  • Save endurtech/e478e4ca2d2b03320a43ab4545bfa7a0 to your computer and use it in GitHub Desktop.

Select an option

Save endurtech/e478e4ca2d2b03320a43ab4545bfa7a0 to your computer and use it in GitHub Desktop.
Completely disable access to XMLRPC.php for WordPress (example1), example 2 disables but permits specified IP address(es)
# Disable access to xmlrpc.php
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
# Disable access to xmlrpc.php
<Files xmlrpc.php>
order deny,allow
deny from all
allow from 111.222.333.444
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment