From 6c5215a8ed8ec8a7146174778f8d91f6955a1265 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 3 Feb 2023 12:52:41 +0100 Subject: [PATCH] block access to some files --- system/routes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/routes.php b/system/routes.php index 3d873d86..9b13699f 100644 --- a/system/routes.php +++ b/system/routes.php @@ -12,7 +12,11 @@ return [ ['GET', '', '__redirect__/news'], // redirect empty URL to news ['GET', 'news/archive/{id:[0-9]+}[/]', 'news/archive.php'], + // block access to some files ['*', 'account/base[/]', '404.php'], // this is to block account/base.php + ['*', 'forum/base[/]', '404.php'], + ['*', 'guilds/base[/]', '404.php'], + [['GET', 'POST'], 'account/password[/]', 'account/change_password.php'], [['GET', 'POST'], 'account/register/new[/]', 'account/register_new.php'], [['GET', 'POST'], 'account/email[/]', 'account/change_email.php'],