diff options
author | Andreas Gohr <andi@splitbrain.org> | 2020-06-30 09:15:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 09:15:19 +0200 |
commit | a4d15dc00b77f93142c8b7373b635d074dcd7dda (patch) | |
tree | f8f4d38b8528f19285377b9625a220b40051f8e3 /index.php | |
parent | 7f153c56d1815159b9bb4a79f1c8a9b66afb1461 (diff) | |
download | dokuwiki-a4d15dc00b77f93142c8b7373b635d074dcd7dda.tar.gz dokuwiki-a4d15dc00b77f93142c8b7373b635d074dcd7dda.zip |
router: send proper HTTP header when access denied
Co-authored-by: Henry Pan <git@phy25.com>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -52,6 +52,7 @@ if (preg_match('/^\/_media\/(.*)/', $_SERVER['SCRIPT_NAME'], $m)) { if (preg_match('/\/([._]ht|README$|VERSION$|COPYING$)/', $_SERVER['SCRIPT_NAME']) or preg_match('/^\/(data|conf|bin|inc)\//', $_SERVER['SCRIPT_NAME']) ) { + header('HTTP/1.1 403 Forbidden'); die('Access denied'); } |