NET::IPFilterSimple - Perl extension accessing ipfilter.dat files the very simple way Warning: Please Update your Sources. Current Version fixed a very critical bug that prevents Program from working correctly.
use NET::IPFilterSimple; my $obj = NET::IPFilterSimple->new( ipfilter => '/home/thecerial/firewall/ipfilter.dat' ); my $IP = "199.196.016.200"; my $isValid = $obj->isValid($IP); # 1 not to be blocked | 0 to be blocked
use strict;
Because it uses no more modules ( in contrast to NET::IPFiler ) it is easily portable to Windows, MAC, Solaris. You only need to give a valid path as ipfilter parameter to the new constructor.
Perl Module for accessing ipfilter.dat files the easy way. IPs from the ranges of ipfilter.dat there are the dots removed and these ranges are then saved in an array. later a given ip is checked against the ranges in the array
isValid()
- Checks given ip against ipfilter.dat range
eMule | BitTorrent | Torrent Sites using ipfilter.dat perl modules
http://search.cpan.org/author/SENGER/
NET::IPFilterSimple NET::IPFilter
Sebastian Enger, bigfish82 |ät! gmail?com
Copyright (C) 2008 by Sebastian Enger
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.