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

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

Serving Software Downloads in 956 Categories, Downloaded 50.211.698 Times

Net::IP::CMatch 0.02

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

Net::IP::CMatch

Report Broken Link
Printer Friendly Version


Product Homepage
Download (38 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
USER REVIEWS
More Reviews or Write Review


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  -  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  
Libraries  -  Apache::MP3 4.00
Apache::MP3 is a Perl module that can generate streamable directories of MP3 and Ogg Vorbis files. SYNOPSIS # httpd.conf or srm.conf AddType audio/mpeg mp3 MP3 AddType audio/playlist m3u M3U AddType audio/x-scpls pls PLS AddType...
327.68 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
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  
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB