]> git.mxchange.org Git - friendica.git/blobdiff - bin/worker.php
Stop using q as a page parameter
[friendica.git] / bin / worker.php
index 1b70a2095544a2d26b15160b230ddb9f733c4f21..833e5b00207ef06b84026611f8ce602dfba0de9c 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\Update;