Nathaniel Bannister

Search
Skip to content

Monthly Archives: July 2016

SysAdmin, Tips and Tricks

Blocking WordPress XMLRPC Access to All of Your WordPress Sites

July 3, 2016 nathanielban Leave a comment

Create the configuration file:

touch /etc/apache2/conf-available/block-wp-xmlrpc.conf

Fill it with the following contents:

<Directory /home/*/public_html/*/>
    <files xmlrpc.php>
      order allow,deny
      deny from all
    </files>
</Directory>

And then enable it:

a2enconf block-wp-xmlrpc.conf
service apache2 reload

Geek. Mac Cultist. IT Guru.

Recent Posts

  • Blocking WordPress XMLRPC Access to All of Your WordPress Sites
  • Blocking PHP Execution From ALL of Your WordPress Sites Upload Folders
  • Tar/GZip a whole folder of files individually
  • Serva – all-in-one portable multi-server engine
  • xip.io – Wildcard DNS

Recent Comments

    Archives

    • July 2016
    • February 2015
    • January 2015
    • October 2014
    • June 2014
    • December 2013
    • November 2013
    • August 2012
    • May 2011
    • December 2010
    • September 2010
    • July 2010
    • June 2009
    • May 2009
    • April 2009

    Categories

    • Quotes
    • SysAdmin
    • Tips and Tricks
    • Tools
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Proudly powered by WordPress