How can i see Visitors and their visit url Via SSh [centos]

Discussion in 'Site & Server Administration' started by kikker, Jan 1, 2018.

  1. #1
    Hello

    How can i see Visitors and their visit url Via SSh [centos]
    i was using some command but i forget it and can not find it on internet
    there is a attack to my server and i wanna see visitors ip and their visit url on website [ i can not see from analytic because JS code doesnt work with that attack visitors]
     
    kikker, Jan 1, 2018 IP
  2. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #2
    If you have Apache installed on your server, check the log files lcated in the /var/log/httpd/ directory.

    For example, the /var/log/httpd/access_log file contains a log of all the IP addresses from where people have accessed your website.

    Use the following command:

    tailf /var/log/httpd/access_log

    It will show you in real time the visitors IP addresses and their visit URL.
     
    RoseHosting, Jan 7, 2018 IP
    kikker likes this.
  3. kikker

    kikker Well-Known Member

    Messages:
    423
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thanks for answer

    it was apache but now using litespeed how can i see with litespeed ?

    when it was apache i tried this command" tailf /var/log/httpd/access_log" but it doesnt show visitors url
     
    kikker, Jan 8, 2018 IP
  4. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #4
    Check the access logs of your domain.
     
    RoseHosting, Jan 11, 2018 IP
  5. RomanEpo

    RomanEpo Active Member

    Messages:
    127
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    78
    #5
    Enable and configure SERVER-STATUS for your domain.So you can monitor total status with page link.
    Execute this command to your command prompt for view total connection per IPs
    netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
    Code (markup):
     
    RomanEpo, Feb 17, 2018 IP
    kikker likes this.