Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

How to identify the Visitor

by romy_mathew (Beadle)
on Sep 11, 2011 at 20:01 UTC ( #925371=perlquestion: print w/replies, xml ) Need Help??
romy_mathew has asked for the wisdom of the Perl Monks concerning the following question:

A Visitor visit my website and leave and now how can I track the person who visited the website.

Replies are listed 'Best First'.
Re: How to identify the Visitor
by ikegami (Pope) on Sep 11, 2011 at 20:23 UTC

    $cgi->remote_addr (CGI) or cookies.

Re: How to identify the Visitor
by LanX (Bishop) on Sep 11, 2011 at 20:03 UTC
    Ask facebook, they know! :-)

    Cheers Rolf

Re: How to identify the Visitor
by CountZero (Bishop) on Sep 11, 2011 at 22:00 UTC
    What do you mean by "track"?


    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: How to identify the Visitor
by Inexistence (Acolyte) on Sep 11, 2011 at 22:07 UTC

    As poster above stated, CGI or Cookies are the easiest

    I'd recommend cookies, since you can normally track individual computers on a single IP using them. But you can't track them if they continually change cookies without either being a static IP and the only computer on that IP, or installing some plugin to identify them (IE what banking plugins do)

      Sorry my question was not very specific .....Suppose I find a IP visiting my website for more than 30 mins and want to identify the person or his personal information about him for that particular ip. How can this be possible, Is it possible to retrieve the information contained in cookies inserted by other websites.
        Contact the Police or FBI, obtain subpoena ...
        You can't utilize 3rd party cookies to obtain personal information. All you can do is supply them a questionaire and hope they fill in their personal details (unlikely) IP's can have multiple computers on them as I said above, so...
        There isn't in existence

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://925371]
Approved by ikegami
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-01-18 02:50 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (206 votes). Check out past polls.