1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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
    SEMrush
    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
    SEMrush
  2. RoseHosting

    RoseHosting Active Member

    Messages:
    187
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    88
    #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:
    416
    Likes Received:
    10
    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 Active Member

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

    RomanEpo Member

    Messages:
    94
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    43
    #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.