From 28c8e895c5765a323c74938a9ffac37411a27e0c Mon Sep 17 00:00:00 2001 From: Edwin Noorlander Date: Tue, 28 Jul 2026 14:53:41 +0200 Subject: [PATCH] Fix RequestLoader autoload + trim bot list --- cms/core/class/RequestLogger.php | 9 +-------- public/index.php | 3 +++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/cms/core/class/RequestLogger.php b/cms/core/class/RequestLogger.php index c1529db..139f639 100644 --- a/cms/core/class/RequestLogger.php +++ b/cms/core/class/RequestLogger.php @@ -42,14 +42,7 @@ class RequestLogger 'Sogou', 'Exabot', 'facebot', ], 'Scraper' => [ - 'HTTrack', 'wget', 'curl', 'python-requests', - 'python-httpx', 'Go-http-client', 'okhttp', - 'Scrapy', 'Apache-HttpClient', 'Java/', - 'ruby', 'PhantomJS', 'HeadlessChrome', - ], - 'Aggregator' => [ - 'Feedly', 'Feedbin', 'FeedReader', 'Inoreader', - 'Flipboard', 'Pocket', 'Pinterest', + 'HTTrack', 'Scrapy', 'PhantomJS', 'HeadlessChrome', ], ]; diff --git a/public/index.php b/public/index.php index 7a787cb..f4209ca 100644 --- a/public/index.php +++ b/public/index.php @@ -89,6 +89,9 @@ if (strpos($path, '/content/') === 0) { exit; } +// Load RequestLogger for bot detection and request logging +require_once __DIR__ . '/../cms/core/class/RequestLogger.php'; + // Bot detection — block known bots/AI scrapers early if (RequestLogger::detectBot() !== null) { http_response_code(403);