The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Labyrinth::IPAddr - IP Address Functions for Labyrinth

SYNOPSIS

  use Labyrinth::IPAddr;

  CheckIP();
  BlockIP($who,$ipaddr);
  AllowIP($who,$ipaddr);

DESCRIPTION

The IPAddr package contains generic functions used for verifying known IP addresses. Used to allow known safe address to use the site without hindrance and to refuse access to spammers.

Eventually this may be rewritten as a memcached stand-alone application, to be used across multiple sites.

EXPORT

  CheckIP
  BlockIP
  AllowIP

FUNCTIONS

CheckIP

Checks whether the current request sender IP address is know, and if so returns the classification. Return codes are:

  0 - Unknown
  1 - Blocked
  2 - Allowed
BlockIP

Block current request sender IP address.

AllowIP

Allow current request sender IP address.

SEE ALSO

  Labyrinth

AUTHOR

Barbie, <barbie@missbarbell.co.uk> for Miss Barbell Productions, http://www.missbarbell.co.uk/

COPYRIGHT & LICENSE

  Copyright (C) 2002-2015 Barbie for Miss Barbell Productions
  All Rights Reserved.

  This module is free software; you can redistribute it and/or
  modify it under the Artistic License 2.0.