From b9ba72c30854bd8fdff60814ee5c4853286d95a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20P=C5=82aczek?= Date: Wed, 8 May 2024 08:28:43 +0200 Subject: [PATCH] Automatic redirection when accessing index.php not from cli. --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index c00fee3..5d05237 100644 --- a/index.php +++ b/index.php @@ -7,6 +7,7 @@ use Krzysiej\RyobiCrawler\Models\Price; use Krzysiej\RyobiCrawler\Models\Product; if (php_sapi_name() !== 'cli') { + header('Location: browser.php'); echo 'Execute this script in cli only'; exit; }