Forbid non-CLI access to command-line scripts
[friendica.git/.git] / bin / console.php
index 27522d8..4d5b4c7 100755 (executable)
  *
  */
 
+if (php_sapi_name() !== 'cli') {
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+       exit();
+}
+
 use Dice\Dice;
 use Psr\Log\LoggerInterface;