Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.981.952 Times

Net::IP::CMatch 0.02

Company: Beau E. Cox
Date Added: October 23, 2013  |  Visits: 216

Net::IP::CMatch

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 downloads)

Net::IP::CMatch is based upon, and does the same thing as Net::IP::Match. The unconditionally exported subroutine 'match_ip' determines if the ip to match ( first argument ) matches any of the subsequent ip arguments. Match arguments may be absolute quads, as '127.0.0.1', or contain mask bits as '111.245.76.248/29'. A true return value indicates a match. It was written in C, rather than a macro, preprocessed through Perl's source filter mechanism ( as is Net::IP::Match ), so that the ip arguments could be traditional perl scalars. The C code is lean and mean ( IMHO ).<br />Example in Apache/mod_perl<br /><br />I use this module in my Apache server's mod_perl DB logging script to determine if an incoming IP is 'remote' or 'local'. First, I set up some variables in httpd.conf:<br /><br /> PerlSetvar DBILogger_local_ips '222.234.52.192/29'<br /> PerlAddvar DBILogger_local_ips '111.245.76.248/29'<br /> PerlAddvar DBILogger_local_ips '10.0.0.0/24'<br /> PerlAddvar DBILogger_local_ips '172.16.0.0/12'<br /> PerlAddvar DBILogger_local_ips '192.168.0.0/16'<br /> PerlAddvar DBILogger_local_ips '127.0.0.1'<br /><br />These are the ip addresses I want to be considered local. In the mod_perl module:<br /><br /> my @local_ips = $r->dir_config( "DBILogger_local_ips" );<br /> my $local = match_ip( $incoming_ip, @local_ips );<br /><br />Now $local is just that, and I set the database key accordingly.<br />EXPORT<br /><br />'match_ip', unconditionally.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Apache Arguments Dbilogger Local Ips Httpdconf Incoming Local Local Ips Logging Match Mod Perl Module Netipmatch Perladdvar Script Server Unconditionally Variables
Users rating: 0/10

License: Freeware Size: 30.72 KB
NET::IP::CMATCH RELATED
Libraries  -  Apache::Wyrd 0.94
Apache::Wyrd is a Perl module for HTML embeddable perl objects under mod_perl. Apache::Wyrd is the core module in a collection of interoperating modules that allow the rapid object-oriented development of web sites in Apaches mod_perl...
174.08 KB  
Libraries  -  MIME::WordDecoder 5.420
MIME::WordDecoder is a Perl module to decode RFC-1522 encoded words to a local representation. SYNOPSIS See MIME::Words for the basics of encoded words. See "DESCRIPTION" for how this class works. use MIME::WordDecoder; ### Get the default...
378.88 KB  
Libraries  -  Apache::AxKit::Language::SAXMachines 1.6.2
Apache::AxKit::Language::SAXMachines is a Perl module that can transform Content With SAX Filters. SYNOPSIS # add the style processor mapping AxAddStyleMap application/x-saxmachines Apache::AxKit::Language::SAXMachines # add the processor...
307.2 KB  
Libraries  -  Apache::TestRun 1.28
Apache::TestRun is a Perl module to run the test suite. SYNOPSIS The Apache::TestRun package controls the configuration and running of the test suite. METHODS Several methods are sub-classable, if the default behavior should be changed....
143.36 KB  
Libraries  -  Apache::AxKit::Language::XSP 1.6.2
Apache::AxKit::Language::XSP is a Perl module with eXtensible Server Pages. SYNOPSIS Time::Object < title...
307.2 KB  
Libraries  -  Apache::WebSNMP 0.11
Apache::WebSNMP is a Perl module that allows for SNMP calls to be embedded in HTML. SYNOPSIS host=zoom.google.org community=public connect interface=ifDescr.2 mac=ifPhysAddress.2 query The...
6.14 KB  
Libraries  -  Apache::ErrorControl 1.026
Apache::ErrorControl Perl module is an Apache Handler for Templating Apache Error Documents. This mod_perl content handler will make templating your ErrorDocument pages easy. Basically you add a couple of entries to your httpd.conf file restart...
10.24 KB  
Libraries  -  Apache::MyConfig 1.30
Apache::MyConfig is a Perl module created to build options access. SYNOPSIS use Apache::MyConfig; die unless $Apache::MyConfig::Setup{PERL_FILE_API}; Apache::MyConfig module provides access to the various hooks and features set when...
389.12 KB  
Libraries  -  ModPerl::ParamBuilder 0.08
ModPerl::ParamBuilder is a Perl module that makes building custom Apache directives easy. SYNOPSIS package MyApp::Parameters; use ModPerl::ParamBuilder; use base qw( ModPerl::ParamBuilder ); my $builder = ModPerl::ParamBuilder->new(...
8.19 KB  
Libraries  -  Apache::ImageMagick 2.0b7
Apache::ImageMagick is a Perl module that can convert and manipulate images on the fly. SYNOPSIS In httpd.conf or .htaccess PerlFixupHandler Apache::ImageMagick PerlSetVar AIMCacheDir /var/aimcache ...
256 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB