You don't have access to the mac address, the mac address has nothing to do with an IP, and mac addresses can be changed. To ignore a line you need to have the information you're basing that decision on at the time you receive the message. You can't wait to resolve the IP address of every user to decide if you display a message or not. And you shouldn't be resolving hundreds of IPs anyway.