PHP IP Address Filter Class