如何找出谁向服务器发出大量请求?

use*_*363 3 httpd apache-2.2

我正在运行 Apache 服务器,想知道谁(IP 地址)在过去 24 小时内使用命令行发出了大量请求。还想找出目前谁拥有最开放的联系?

qua*_*nta 5

我正在运行 Apache 服务器,想知道谁(IP 地址)在过去 24 小时内使用命令行发出了大量请求。

awk '/29\/Sep\/2011/ { print $1 }' /path/to/access_log | sort | uniq -c | sort -rn | head
Run Code Online (Sandbox Code Playgroud)

还想找出目前谁拥有最开放的联系?

netstat -natp | grep httpd | awk '{ print $5 }' | cut -d: -f1 | sort | uniq -c | sort -rn | head
Run Code Online (Sandbox Code Playgroud)