X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=6ab405c632a3f092db5914db9f146f6f457b7ab1;hb=bedab33e0b3a1636332c8f07c157a357bf3fd459;hp=7ec3485d84a6dff6362c7502abbbc4f2d4022a8b;hpb=5a02e39a65f8f685440228cc1d36738cbe15f32b;p=friendica.git diff --git a/index.php b/index.php index 7ec3485d84..6ab405c632 100644 --- a/index.php +++ b/index.php @@ -46,6 +46,10 @@ if ($a->isMaxProcessesReached() || $a->isMaxLoadReached()) { System::httpExit(503, ['title' => 'Error 503 - Service Temporarily Unavailable', 'description' => 'System is currently overloaded. Please try again later.']); } +if (strstr($a->query_string, '.well-known/host-meta') && ($a->query_string != '.well-known/host-meta')) { + System::httpExit(404); +} + if (!$a->getMode()->isInstall()) { if (Config::get('system', 'force_ssl') && ($a->getScheme() == "http") && (intval(Config::get('system', 'ssl_policy')) == SSL_POLICY_FULL)