X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fwait-for-connection;h=de860e9849f59d62df7553d3eb68886201335419;hb=974f7bffc82d024a38b4709c6b250677a217f65a;hp=b6c03a6705df9ef52f386e25fd2ff651f18fdd47;hpb=2c56d2f3360c08e312e5c167261af8e5d4b87af4;p=friendica.git diff --git a/bin/wait-for-connection b/bin/wait-for-connection index b6c03a6705..de860e9849 100755 --- a/bin/wait-for-connection +++ b/bin/wait-for-connection @@ -24,6 +24,11 @@ * 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: