"; print_r($response); echo ""; } $results = $response; return $results; } require_once("settings/fvsgenconfigxyz.php"); $skip404_path_array = array( 'modules/pneus/marche/', 'modules/pneus/foto/', 'modules/pneus/images/', 'modules/HomePage/logoauto/', 'modules/Sections/images/', 'modules/Sections/download/' ); foreach($skip404_path_array as $path) { if(preg_match("/".str_replace('/','\/',$path)."/i",$_SERVER['REDIRECT_URL'])) die(); } $currenttime = time(); $ip = $_SERVER['REMOTE_ADDR']; if(in_array($ip, $my_ips)) die(); if($use_mysql_connect == 1) $db_connection = mysql_connect($dbhost, UnPao($dbuname), UnPao($dbpass)); else $db_connection = mysql_pconnect($dbhost, UnPao($dbuname), UnPao($dbpass)); @mysql_select_db(UnPao($dbname),$db_connection) or die("Unable to select database"); mysql_query("insert into $prefix"._404_hits." values (NULL, '$currenttime', '".date('Y-m-d @ H:i:s', $currenttime)."', '$ip', '".json_encode($_SERVER)."')", $db_connection); $window = 10 * 60; //10 minuti $max_hits = 10; list($counter_hits)=mysql_fetch_row(mysql_query("select count(*) from $prefix"._404_hits." where ip='$ip' and data_ins>='".($currenttime - $window)."'", $db_connection)); if($counter_hits >= $max_hits) { in_array($_SERVER['REMOTE_ADDR'],$stat_exclude_array) ? $blocco = 'NO' : $blocco = 'YES'; $testo_email = print_r($_SERVER, true); $testo_email .= "\n\nCounter Hits: $counter_hits"; $testo_email .= "\n\nBlocco IP: $blocco"; $test_sub = " ($blocco)"; $Mail_From = "From: PicoPortal ERROR LOG \n"; $mailreplayto = "Reply-To: PicoPortal ERROR LOG \n"; mail('logs@fvsoftware.it',"Errore 404 $nome_installazione_cliente$test_sub",$testo_email,$Mail_From.$mailreplayto,"-flogs@fvsoftware.it"); if($blocco == 'YES') { global $prefixbridge, $prefix, $PHP_version, $db_bridge_connect, $siteid; mysql_query("insert into $prefix"._banned_from_site." values (NULL, '".$_SERVER['REMOTE_ADDR']."', '".time()."', '3')", $db_connection); $db_bridge_connect = mysql_connect($dbhostbridge, UnPao($dbunamebridge), UnPao($dbpassbridge)); @mysql_select_db(UnPao($dbnamebridge)) or die ("Unable to select database"); list($sitename, $dbnamebr, $server, $host) = mysql_fetch_row(mysql_query("select sitename, dbname, server, host from $prefixbridge"._siteid." where siteid='$siteid'", $db_bridge_connect)); list($server_ip, $cpanel_port) = mysql_fetch_row(mysql_query("select server_ip, cpanel_port_https from $prefixbridge"._general_config." where server_name='$host' limit 1", $db_bridge_connect)); list($clientemail, $adminemail, $cpanel_username, $cpanel_password, $send_backup_client_notification, $ftp_username, $ftp_password) = mysql_fetch_row(mysql_query("select clientemail, adminemail, cpanel_username, cpanel_password, send_backup_client_notification, ftp_username, ftp_password from $prefixbridge"._siteid." where cpanel_username!='' and siteid='$siteid' limit 1", $db_bridge_connect)); $cpanel_res = curl_request($cpanel_username, $cpanel_password, "https://$server_ip:2083", "/json-api/cpanel?cpanel_jsonapi_user=$cpanel_username&cpanel_jsonapi_apiversion=3&cpanel_jsonapi_module=BlockIP&cpanel_jsonapi_func=add_ip&ip=".$_SERVER['REMOTE_ADDR']); header("location: https://www.quattrocerchi.net/100Gredirect.php"); } die(); } ?> ::: FVsoftware ::: Error 404: File Not Found :::




Error 404: File Not Found

Sorry, the requested URL was not found on this server.