I would like to detect (but not redirect) visits from a particular IP range(s) and be sent an email to notify me of their visit. This is to be invisible to the visitor. I wish to check on visits from specific unwanted corporate addresses who have been told not to visit my site and do so in contravention of Terms and Conditions, letters, and robots.txt.
I already use some slightly modified php scripts from here,
[
seven-3-five.blogspot.com...]
and .htaccess redirects to redirect detect specific IP ranges, to a page with an email notification script, but is it possible to do something that would send me emails including the IP and referrer of the visitor, without me having to direct the visitor to a specific page with a script on it?
I am not familiar with php syntax so would value a simple answer please!
All help gratefully received.