X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=4d5b4c79c2894f679239bf039dda6655c711036c;hb=686bf6b32f32852a24286f053feb1c293361e3b6;hp=a6513a2e8f992bdd52d5a8bfea7ff81e5c7e94ef;hpb=f1e7d97b8cae93e1c77f5a5085880409b01fcdbe;p=friendica.git diff --git a/bin/console.php b/bin/console.php index a6513a2e8f..4d5b4c79c2 100755 --- a/bin/console.php +++ b/bin/console.php @@ -1,5 +1,29 @@ #!/usr/bin/env php . + * + */ + +if (php_sapi_name() !== 'cli') { + header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); + exit(); +} use Dice\Dice; use Psr\Log\LoggerInterface;