X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=4d5b4c79c2894f679239bf039dda6655c711036c;hb=974f7bffc82d024a38b4709c6b250677a217f65a;hp=27522d8554762bb0a607f21fb38d3020394cb0d4;hpb=01640a7045e146759bc936dd499ac27738b78940;p=friendica.git diff --git a/bin/console.php b/bin/console.php index 27522d8554..4d5b4c79c2 100755 --- a/bin/console.php +++ b/bin/console.php @@ -20,6 +20,11 @@ * */ +if (php_sapi_name() !== 'cli') { + header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); + exit(); +} + use Dice\Dice; use Psr\Log\LoggerInterface;