X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fprobe.php;h=8c951a7fcfd62f63f9c3fbe5bda5a02af735ad65;hb=9fb4ba2b733d59b8a704cb8df846c3b43769503d;hp=3c2497b2f4480066d1ffbf2b146487b45433def8;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/mod/probe.php b/mod/probe.php index 3c2497b2f4..8c951a7fcf 100644 --- a/mod/probe.php +++ b/mod/probe.php @@ -4,6 +4,13 @@ require_once('include/Scrape.php'); function probe_content(App $a) { + if (!local_user()) { + http_status_exit(403, + array("title" => t("Public access denied."), + "description" => t("Only logged in users are permitted to perform a probing."))); + killme(); + } + $o .= '

Probe Diagnostic

'; $o .= '
'; @@ -12,7 +19,7 @@ function probe_content(App $a) { $o .= '

'; - if (x($_GET,'addr')) { + if(x($_GET,'addr')) { $addr = trim($_GET['addr']); $res = probe_url($addr);