Hi all, I created a short code to recieve an email every time someone visits my website that includes their IP address but I've found that I'm recieving a lot of IPs from spiders. I've noticed all of their IP's start with 119.63.198., so I was hoping there was a way to make an if statement that would be like if ip = 119.63.198., dont send me the email, otherwise... send away!
Any help would be greatly appreciated, this is what I've got so far:
<?php
$ip=$_SERVER['REMOTE_ADDR'];
mail ('me@gmail.com', 'ip of visitor', $ip);
?>