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 // start code if (getenv('HTTP_X_FORWARDED_FOR')) { $ip=getenv('HTT..

Decoded Output download

<?php   
 
// start code   
 
if (getenv('HTTP_X_FORWARDED_FOR'))   
{    
$ip=getenv('HTTP_X_FORWARDED_FOR');   
}    
else {    
$ip=getenv('REMOTE_ADDR');   
}   
 
// print the IP address on screen   
 
echo $ip;   
 
?>

Did this file decode correctly?

Original Code

<?php  

// start code  

if (getenv('HTTP_X_FORWARDED_FOR'))  
{   
$ip=getenv('HTTP_X_FORWARDED_FOR');  
}   
else {   
$ip=getenv('REMOTE_ADDR');  
}  

// print the IP address on screen  

echo $ip;  

?>

Function Calls

getenv 1

Variables

None

Stats

MD5 107208d7fc9400cd99fc3c7828841b45
Eval Count 0
Decode Time 96 ms