X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=bin%2Fconsole.php;h=4d5b4c79c2894f679239bf039dda6655c711036c;hb=686bf6b32f32852a24286f053feb1c293361e3b6;hp=27522d8554762bb0a607f21fb38d3020394cb0d4;hpb=e80d68ba53776bed047d897f52db7e25b35a479d;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;