]> git.mxchange.org Git - friendica.git/blobdiff - include/gprobe.php
add the module to the page title
[friendica.git] / include / gprobe.php
index 3f3164f763cb8e590ff5009d5d8806f9d1f76743..84292f263affb3fb7d6daed93f566674f20f2e38 100644 (file)
@@ -47,8 +47,8 @@ function gprobe_run(&$argv, &$argc){
                $result = Cache::get("gprobe:".$urlparts["host"]);
                if (!is_null($result)) {
                        $result = unserialize($result);
-                       if ($result["network"] == NETWORK_FEED) {
-                               logger("DDoS attempt detected for ".$urlparts["host"], LOGGER_DEBUG);
+                       if (in_array($result["network"], array(NETWORK_FEED, NETWORK_PHANTOM))) {
+                               logger("DDoS attempt detected for ".$urlparts["host"]." by ".$_SERVER["REMOTE_ADDR"].". server data: ".print_r($_SERVER, true), LOGGER_DEBUG);
                                return;
                        }
                }