I would like to block the access to xmlrpc.php
I created a file in
/etc/apache2/conf.d/block.conf
and added the following content:
<FilesMatch "(^\.|wp-config\.php|xmlrpc\.php|(?<!robots)\.txt|(liesmich|readme)\.*)">
Require all denied
</FilesMatch>
If I try any domain on the server I'm still getting access: example.com/xmlrpc.php
I would have expected an "Forbidden"-error.