diff --git a/lib/exe/manifest.php b/lib/exe/manifest.php
index a5c1882024b658357f7c14f4c358d1245a9fd06a..d11bb531055ae637236a8f48b9f10590572fc1e3 100644
--- a/lib/exe/manifest.php
+++ b/lib/exe/manifest.php
@@ -5,5 +5,10 @@ if (!defined('DOKU_INC')) {
 }
 require_once(DOKU_INC . 'inc/init.php');
 
+if (!actionOK('manifest')) {
+    http_status(404, 'Manifest has been disabled in DokuWiki configuration.');
+    return;
+}
+
 $manifest = new \dokuwiki\Manifest();
 $manifest->sendManifest();