user616076
user616076

Reputation: 4001

Can I capture the IP address of every user that logs into my website

I have been asked to get details of every user that logs into our website. Is it possible to capture the IP address of every user that logs into our website from which I can gather details using IP lookup software.

Upvotes: 2

Views: 5829

Answers (2)

Mark Brackett
Mark Brackett

Reputation: 85675

It's already captured. Check out the web logs for whatever your webserver is.

In IIS, it's likely in C:\Windows\System32\LogFiles. Apache will normally be in /var/log.

You can tweak the specifics of what it captures, but by default IP address is always included.

Upvotes: 3

Anders Forsgren
Anders Forsgren

Reputation: 11111

Unless you are explicitly required to store the ip:s yourself, I recommend using Google Analytics, which will sort out unique/returning visitors, geographical locations and so on.

Upvotes: 2

Related Questions