Results 1 to 3 of 3

Thread: Counter?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question Counter?

    I am about to make a counter with asp.net something like this:
    http://www.nedstatbasic.net/s?tab=1&link=1&id=1738633

    I need information from the user on:

    - IP address
    - Domain name (e.g. Tele Danmark, Denmark)
    - Country
    - Date & Time

    Can I get this information importing the System.IO?
    If true, how do I do that?

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: Counter?

    Generally speaking the webhost will have a stats package installed that you can use. There are also several free ones that work off the web server log files too - off the top of my head AWStats is one freebie!

    If you want to track things yourself you could have a user control that logs details in a text file or database when it is loaded. The date and time would be obviously DateTime.Now. The users IP address can be returned from Request.ServerVariables["REMOTE_ADDR"]. You would need a third party service to determine the location of the user and its not always 100% accurate. Try out http://www.locateip.com/.

    Remember we are talking about counting requests here so if I view a page twice it counts as 2 requests. You might want to look into tracking sessions instead of request - its a more useful measurement!

    HTH

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

  3. #3
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: Counter?

    check out http://www.statcounter.org as well

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width