NAME

Labyrinth::IPAddr - Set of general IP Address checking Functions.

SYNOPSIS

use Labyrinth::IPAddr;

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

DESCRIPTION

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

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-2011 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.