Hi,
Can anyone tell me of a regex() that will determine the number of unique visitors to a site from standard apache log files?
I appreciate this will likely have to be a regex/PHP combo, but I really need help with the regex(). If anyone can refer me to any relevant material (a straight regex with explanation would be REALLY helpful) I'd be grateful.
Many thanks
Mark
Regex for site visits -> logs
Moderator: General Moderators
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
Unique IPs != Unique Visitors 
Users may share IPs from sharing a similar or same connection. For example networked pcs, and even ISPs. Reminds me of the case where two users had the same IP - we were scanning for multiple accounts on a game server. Both people turned out to be several states apart (US), but used the same ISP.
I agree it's a very rough guide - but it's not exact. There's exceptions to the rule. One of the reasons I only use IP banning in extreme cases...
Users may share IPs from sharing a similar or same connection. For example networked pcs, and even ISPs. Reminds me of the case where two users had the same IP - we were scanning for multiple accounts on a game server. Both people turned out to be several states apart (US), but used the same ISP.
I agree it's a very rough guide - but it's not exact. There's exceptions to the rule. One of the reasons I only use IP banning in extreme cases...