PHP Classes

File: example_2.php

Recommend this page to a friend!
  Classes of Todor Iliev  >  Defensive Attack  >  example_2.php  >  Download  
File: example_2.php
Role: Example script
Content type: text/plain
Description: Look for proxy using.
Class: Defensive Attack
Retrieve information of current user HTTP request
Author: By
Last change:
Date: 15 years ago
Size: 871 bytes


Class file image Download
 * 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 GNU Public License
 * @filesource

//Load class

//Create object
$def_attack = new DefensiveAttack();

//Get outside IP address
$ip = $def_attack->GetIpAddress();

//Looking for proxy
if ($def_attack->IsUseProxy()) {
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);


For more information send a message to info at phpclasses dot org.