diff --git a/cron.php b/cron.php index f564f4c72..6eee57328 100755 --- a/cron.php +++ b/cron.php @@ -34,7 +34,15 @@ $_E107['no_menus'] = true; $_E107['allow_guest'] = true; // allow crons to run while in members-only mode. $_E107['no_maintenance'] = true; +if (php_sapi_name() !== "cli" && $_E107['debug'] === false) +{ + header('HTTP/1.0 403 Forbidden'); + echo "

Access Denied

"; + exit; +} + require_once(realpath(__DIR__ . "/class2.php")); + require_once(e_HANDLER . "cron_class.php"); $cron = new cronScheduler();