Forum Moderators: coopster
Or are there better ways to do it?
Ignore (dont increment link counter) all requests that have useragent known to be used by bots. I would not get into cookies because per spec cookie will only be returned to you (if its supported) for all requests after after the one that had cookie set command returned from server. This way you can't really count that a page was viewed by a bot only because there is no cookie submitted to you because it might be the very first request made by a legitimate browser.
Wilderness might have a more effective way how to deal with bots *grins*
Check if you get automatic session cookie set by web or app server - then check log files (assuming you log cookies) and odds are you will see lots of page view without cookies set, even though session cookies should be set everytime request goes through without that cookie set. I explained why this happens (or so I believe) above.