X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=0684f240e2113b8fe782f69f4ff536faeaf049e7;hb=a19a7dc2a0c0a22fd306e162383ef7117c1baca2;hp=a6513a2e8f992bdd52d5a8bfea7ff81e5c7e94ef;hpb=f1e7d97b8cae93e1c77f5a5085880409b01fcdbe;p=friendica.git diff --git a/bin/console.php b/bin/console.php index a6513a2e8f..0684f240e2 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;