]> git.mxchange.org Git - friendica.git/blobdiff - bin/wait-for-connection
The worker is split into several classes
[friendica.git] / bin / wait-for-connection
index b6c03a6705df9ef52f386e25fd2ff651f18fdd47..388a660b8830782ffba8983859e8404922882a53 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/php
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
  * Usage: php bin/wait-for-connection {HOST} {PORT} [{TIMEOUT}]
  */
 
+if (php_sapi_name() !== 'cli') {
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+       exit();
+}
+
 $timeout = 60;
 switch ($argc) {
        case 4: