Labyrinth::IPAddr - IP Address Functions for Labyrinth
use Labyrinth::IPAddr; CheckIP(); BlockIP($who,$ipaddr); AllowIP($who,$ipaddr);
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.
CheckIP BlockIP AllowIP
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
Block current request sender IP address.
Allow current request sender IP address.
Barbie, <email@example.com> for Miss Barbell Productions, http://www.missbarbell.co.uk/
Copyright (C) 2002-2014 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.