PHP Classes

File: example_3.php

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


Class file image Download
 * File containing example 3(check referer) 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("");

//Check referer if I do not want direct access to my site
if (false === $def_attack->CheckReferer()) {
"Access deny " . '<a href="example_3.php" >Use link</a>';
} else {
"Access allow";


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