How many Unique IP’s have Connected to your Apache Website

Written by James McDonald

April 28, 2010

This will tell you how many unique IP addresses have connected to your website since the last log file rotation. So if your logs are rotated daily then you have the number of unique IP’s for roughly the last 24hour


# go to your apache logs directory and run:
$ cat access.log | awk '{ print $1 }' | sort | uniq  | wc -l
# out put 
415

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...