Added xmlrpc.php into existing protection

I try to insert file protection like:
<Files ~ “^.*.([Hh][Tt][Aa])”>
order allow,deny
deny from all
satisfy all

and add also xmlrpc.php

order deny,allow
deny from all

Is it possible to add inside line <Files ~ “^.*.([Hh][Tt][Aa])”>

Need help. Can be improved this code for WP?

To answer your question, you just need to add another files block

<Files xmlrpc.php>
order deny,allow
deny from all
</Files>

but if your server is properly configured you shouldn’t need the code you posted as access to htaccess and htpasswd is blocked by default - as I say, if the server is properly configured.

Thank you for the message.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.