]> git.mxchange.org Git - friendica.git/blobdiff - bin/wait-for-connection
test again
[friendica.git] / bin / wait-for-connection
index b6c03a6705df9ef52f386e25fd2ff651f18fdd47..de860e9849f59d62df7553d3eb68886201335419 100755 (executable)
  * 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: