X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=0684f240e2113b8fe782f69f4ff536faeaf049e7;hb=8357a70c4bc7a104373be2ddde6e8d918ea5721b;hp=a6513a2e8f992bdd52d5a8bfea7ff81e5c7e94ef;hpb=36ba7fa79c7c2d4304f3423d84215771e3bb6a9f;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;