KB Knowledge Base
How To Check Apache Connections

Article By peggy


Apache Server VPS setup and configuration BIPmedia.com

Introduction to Apache server

You can use the following command to see how many connections a specific IP has to an Apache server running on port 80.

The more connections from an IP, the more of a chance that the server could be under some type of attack from that IP.
 netstat -tn --inet 2> /dev/null| grep ':80' | awk '/tcp[\ ]*[0-9]+[\ ]*[0-9]+[\ ]+[^\ ]+[\ ]*[^\ ]*/ { print $5; }' | cut -d':' -f1 | sort | uniq -c | sort -n

Tags: , , , ,

Spin up a VPS server in no time flat

Simple setup. Full root access. Straightforward pricing.


Leave a Reply