YaBB3::Guardian - The Guardian &trade Class.


Name

YaBB3::Guardian - The Guardian &trade Class.


Synopsis

  use YaBB3::Guardian;
  # creation of Guardian-object
  my $guardian = new YaBB3::Guardian;
  # guard the board according to The Guardian &trade settings
  $guardian->guard();


Overview

The Guardian &trade class. It provides a method to protect the board against different types of abuse and attacks. It can also notify the board administrator by e-mail and ban the abusers by IP address with .htaccess file.


Description

The guard method can used to guard the board. The other private methods carry out part specific check against a certain type of abuse or attack. The update_htaccess private method update the .htaccess file, banning abusers by IP address.

Required settings


The required settings are gathered from the YaBB3 guardiansettings and guardianbanned tables.

Settings in guardiansettings table


=over

Settings in guardianbanned table


=over


Reference


=head2 Used Packages
  YaBB3::Base
  YaBB3::Sendmail

Exports

  Default   $Y $VERSION
  Optional
  Tags

Object Super Classes

  YaBB3::Base

Object Methods

new

  Returns
  /%             The constructed object reference.

Construct and return a new guardian object.

guard

It protects the board by checking for different types of abuses or attack, according to the settings in the guardiansettings and guardianbanned tables

Private Object Methods

ProxyBlocker

RefererCheck

HarvesterCheck

RequestCheck

StringCheck

UnionCheck

ClikeCheck

ScriptCheck

update_htaccess

guardian_notify


Author

Ron Hartendorp Maurizio Laudone

Copyright ©2002, YaBB 3 Development Team. All Rights Reserved.
You may distribute this module under the terms of YaBB 3.
 YaBB3::Guardian - The Guardian &trade Class.