It somewhat depends on why and what you are doing with your log. If you are trying to track access to sites and determine information on that end, you might be better served to see if your ISP allows you access to its server access logs. Many ISP's don't do this.
Another problem you might encounter is simply the fact that yout ISP assigns you more than one class C domain. In either case, I think the best way for you to handle this would be to use a sample code snippet as follows:
my ($my_ip, $host); # For those using strict
$my_ip = "192.168.0";
# This line might look tricky, but basically
# all we are doing is loading the environment
# variable into a $host variable and also
# into the PERL variable $_ which is used to
# match against the IP we are looking for.
$_ = $host = $ENV{'REMOTE_HOST'};
if (m/$my_ip/) {
# DO NOT LOG FOR MY_IP
} else {
# PERFORM LOGGING
}
Replace my comments in the IF areas to do whatever you want your logging program to do. My apologies if this code looks strange, you cannot unispace code on this forum.
------------------
Fred Hirsch
Web Consultant & Programmer