Class DefensiveAttack

Description

DefensiveAttack class for php 5.x

Located in /class.php5.DefensiveAttack.php (line 46)


	
			
Direct descendents
Class Description
 class MyDefensiveAttack MyDefensiveAttack class for php 5.x
Variable Summary
 string $mIpAddress
 string $mMyHostName
 string $mMyIpAddress
 string $mReferer
Method Summary
 DefensiveAttack __construct ([string $myHostName = null])
 void __destruct ()
 bool CheckReferer ()
 void DelSmartCookieBan ([string $path = "/"], [string $cookieName = "uid_cookie_ban_ban"])
 reference &GetCookieData ()
 string GetHostName ()
 string GetInputData ()
 string &GetIpAddress ()
 string &GetReferer ()
 bool IsIpIdentity ()
 bool IsSetSmartCookieBan ([string $cookieName = "uid_cookie_ban_ban"])
 bool IsUseProxy ()
 void SetMyIpAddress (string $ip)
 string &SetRealIp ()
 string &SetReferer ()
 void SetSmartCookieBan ([string $path = "/"], [string $cookieName = "uid_cookie_ban_ban"])
Variables
string $mIpAddress = '127.0.0.1' (line 70)

Outside IP address

  • access: protected
string $mMyHostName = '' (line 54)

My host name

  • access: protected
string $mMyIpAddress = '127.0.0.1' (line 62)

My IP address

  • access: protected
string $mReferer = '' (line 78)

Referer

  • access: protected
Methods
Constructor __construct (line 86)

DefensiveAttack constructor

  • access: public
DefensiveAttack __construct ([string $myHostName = null])
  • string $myHostName: hostname

Redefined in descendants as:
Destructor __destruct (line 309)

DefensiveAttack destructor

  • access: public
void __destruct ()
CheckReferer (line 265)

Check referer for my url address

  • access: public
bool CheckReferer ()

Redefined in descendants as:
DelSmartCookieBan (line 202)

Delete ban cookie

  • access: public
void DelSmartCookieBan ([string $path = "/"], [string $cookieName = "uid_cookie_ban_ban"])
  • string $path
  • string $cookieName
GetCookieData (line 289)

Get cookie data

  • return: to array
  • access: public
reference &GetCookieData ()
GetHostName (line 163)

Get host name

  • access: public
string GetHostName ()
GetInputData (line 277)

Get input data

  • access: public
string GetInputData ()
GetIpAddress (line 128)

Get IP outside address

  • access: public
string &GetIpAddress ()
GetReferer (line 253)

Get referer

  • access: public
string &GetReferer ()
IsIpIdentity (line 151)

Compare my IP address with outside IP address

  • access: public
bool IsIpIdentity ()
IsSetSmartCookieBan (line 215)

Check Ban cookie

  • access: public
bool IsSetSmartCookieBan ([string $cookieName = "uid_cookie_ban_ban"])
  • string $cookieName
IsUseProxy (line 175)

Looking for proxy using

  • access: public
bool IsUseProxy ()
SetMyIpAddress (line 140)

Set my IP address

  • access: public
void SetMyIpAddress (string $ip)
  • string $ip
SetRealIp (line 105)

Set real outside IP address

  • access: protected
string &SetRealIp ()
SetReferer (line 227)

Set referer

  • access: protected
string &SetReferer ()
SetSmartCookieBan (line 189)

Set ban cookie

  • access: public
void SetSmartCookieBan ([string $path = "/"], [string $cookieName = "uid_cookie_ban_ban"])
  • string $path
  • string $cookieName

Documentation generated on Tue, 31 Oct 2006 23:59:53 +0200 by phpDocumentor 1.3.1