]> git.mxchange.org Git - friendica.git/blobdiff - mod/webfinger.php
Merge pull request #3344 from tobiasd/20170412-doc
[friendica.git] / mod / webfinger.php
index f08451ba70446d380b75170c04272f721594d13e..d823bd2dc217b988c8f5d41839ee22f77bfde8a8 100644 (file)
@@ -1,7 +1,14 @@
 <?php
 require_once("include/Probe.php");
 
-function webfinger_content(App &$a) {
+function webfinger_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 .= '<h3>Webfinger Diagnostic</h3>';