<?php
/**
* File containing example 5(check referer with "www" and without "www") 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 DefensiveAttack
require("class.php5.DefensiveAttack.php");
/**
* MyDefensiveAttack class for php 5.x
*
*
* @package MyDefensiveAttack extends by DefensiveAttack
* @author TheLordOfWeb <http://thelordofweb.atspace.com/>
* @version 1.0.0
* @copyright Copyright (C)2006 TheLordOfWeb. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @example example_5.php
*/
/**
* My host name 2 with "www" or not
*
* @access protected
* @var string
*/
/**
* MyDefensiveAttack constructor
*
* @access public
* @param string hostname
* @see parent::__construct()
*/
}
/**
* Check referer for my url address with "www" and without "www"
*
* @access public
* @return bool
*/
}
}
//Create object
//Check referer if I do not want direct access to my site
print "Access deny " . '<a href="example_5.php" >Use link</a>';
} else {
print "Access allow";
}
?>