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