]> git.mxchange.org Git - friendica.git/blobdiff - bin/worker.php
Merge pull request #9497 from annando/attach-field
[friendica.git] / bin / worker.php
index 46eff1071a10fc3a050cc887ea8f8f7e272ab0c2..5698cf16ddfaca79eb69b0e1aa04d3efa515435c 100755 (executable)
  * Starts the background processing
  */
 
+if (php_sapi_name() !== 'cli') {
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+       exit();
+}
+
 use Dice\Dice;
 use Friendica\App;
 use Friendica\Core\Process;