<?php
 
/**
 
 * File containing example 2(Look for proxy using) use DefensiveAttack.
 
 *
 
 * @package     DefensiveAttack
 
 * @version     1.0.0
 
 * @copyright     Copyright (C)2006 TheLordOfWeb. All rights reserved.
 
 * @license     http://www.gnu.org/copyleft/gpl.html GNU Public License
 
 * @filesource
 
 */
 
 
//Load class
 
//require("class.php4.DefensiveAttack.php");
 
require("class.php5.DefensiveAttack.php");
 
 
//Create object
 
$def_attack     =   new DefensiveAttack();
 
 
//Get outside IP address
 
$ip =   $def_attack->GetIpAddress();
 
 
//Looking for proxy
 
if ($def_attack->IsUseProxy()) {
 
    print nl2br("You are using proxy\n");
 
    
 
    if (!empty($ip)) {
 
        print ("Your IP address is : " . $ip);
 
    }
 
 
} else {
 
    
 
    if (!empty($ip)) {
 
        print ("May be your are not use proxy and your IP address is : " . $ip);
 
    }
 
    
 
}
 
 
 
 
 
?>
 
 
 |