Login   Register  
PHP Classes
elePHPant
Icontem

File: trap/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lee Johnstone  >  PHP bans and trap  >  trap/index.php  >  Download  
File: trap/index.php
Role: Example script
Content type: text/plain
Description: main trap example file
Class: PHP bans and trap
Manage database of banned IP addresses
Author: By
Last change:
Date: 2009-06-18 19:28
Size: 378 bytes
 

Contents

Class file image Download
<?php
// robots.txt bypass trap detection system.
// designed to full robots in to thinking this is a real directory
//
include $_SERVER[DOCUMENT_ROOT].'/data/class.ban_embed_sql.php'
$trap = new Ban_Control();
$traparray = array(
                
'proxy_check' => 0,
                
'robot_check' => 1,
                
'ban_check' => 1,
                 );
$trap->Ban($traparray); // check and do the bans

?>