jatar_k

msg:3589902 | 2:46 pm on Mar 3, 2008 (gmt 0) |
you can't rely on ip being a unique identifier of a single user, take AOL, anyone on AOL has the same ip as innumerable others. unique is a difficult thing to track are they logged in, logged in users can always be uniquely tracked. You could also use cookies, that would get the number closer to reality. if not then the true number of unique is somewhere between the number of page views and the number of unique ips
|
henry0

msg:3589912 | 2:55 pm on Mar 3, 2008 (gmt 0) |
jatar_K, in that case (AOL, AT&T etc.) How could you ban a user?
|
jatar_k

msg:3589914 | 2:57 pm on Mar 3, 2008 (gmt 0) |
you can't especially when you think of proxies as well
|
coopster

msg:3589915 | 2:57 pm on Mar 3, 2008 (gmt 0) |
You really can't. Not without the chance of banning an entire IP block in a sense because if somebody else ends up with that dynamic IP address, you potential are blocking any given user at any given time because you never know who is going to have that IP address next time around.
|
adammc

msg:3590275 | 8:42 pm on Mar 3, 2008 (gmt 0) |
? what about setting a cookie then using IP? Surely there must be a way I can roughly judge how many visitors my pages are getting using soemthing like my example above?
|
adammc

msg:3590292 | 9:01 pm on Mar 3, 2008 (gmt 0) |
Wouldnt something like this be appropriate? Insert data.... // get the pagename $page_name = $r['product_name']; // get the date / time $date = time(); // run the query mysql_query("INSERT INTO tracking ipaddress, page_name, date)VALUES( '$ipaddress, '$page_name, '$date)") or die(mysql_error()); View stats..... $result = mysql_query("SELECT * FROM tracking WHERE pagename='$somepagename' and last_visit< CURRENT_DATE - INTERVAL 7 DAY");
|
cameraman

msg:3590313 | 9:22 pm on Mar 3, 2008 (gmt 0) |
It would be better to use the session id. I started with one written by someone called darklight - if you search for 'user tracker php script darklight' you'll run across it pretty quick. I've been using it for years with modifications along the way - looks like the author has put out a newer version than the one I have. When I downloaded it I had just barely started with php and didn't understand cookies at all. The script was well enough written that I could understand what was going on and modify to suit.
|
|