Do you mean to find location of users visiting your website? Ip address of users are logged in your log file (usually, /var/log/apache2/access.log), You can use tail command to see last lines.
You can find location from ip in many ways. Using logresolve ( http://httpd.apache.org/docs/2.2/programs/logresolve.html ) or any online tools ( just google "ip to location"). Usually, ISP's add location to hostname. For example, my ip address returns the hostname xxx.xx.xx.xxstatic-cochin.vsnl.net.in -- Syam Kumar R. http://www.webmasterview.com/ On Tue, Feb 17, 2009 at 10:49 AM, Nijeesh T V <[email protected]> wrote: > Hi, > Can any one tell me a way to find out the location of the > client accessing webserver using shell script. Does we need to maintain any > database for the said requrement. > > Thanks in advance... > > Regards, > Nijeesh > > _______________________________________________ > Mailinglist mailing list > [email protected] > http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org > >
_______________________________________________ Mailinglist mailing list [email protected] http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
