wordpress: disable readme.html, xmlrpc.php, wp-cron.php

Closes: #2244.

This patch disabled xmlrpc.php functionality entirely. For interacting with
WordPress using app, the new REST API functionality is recommended. However, for
the Pingback API XML-RPC is still a necessity. If this is an important feature
for FreedomBox users, we intend to re-enable XML-RPC functionality in WordPress.

Signed-off-by: nbenedek <contact@nbenedek.me>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
nbenedek 2022-08-22 20:46:19 +02:00 committed by Sunil Mohan Adapa
parent 43532e8349
commit f702e044f3

View File

@ -54,3 +54,8 @@ Alias /wordpress /usr/share/wordpress
Require all granted
</IfFile>
</Directory>
# Harden security by following wpscan's suggestions. Issue #2244
<LocationMatch "^/wordpress/(readme.html|xmlrpc.php|wp-cron.php)">
Deny from All
</LocationMatch>