my $remote = $ENV{REMOTE_ADDR}; return(0) unless grep /$remote/, @$hosts;