Tag Archives: ip address

Log real IP address with CloudFlare and nginx

When you have a website behind the CloudFlare DNS (using its CDN services), chances are your nginx access logs are logging CloudFlare IP addresses. This is due to the fact that your are serving content where CloudFlare acts as proxy. … Continue reading

Posted in Linux | Tagged , , , | 2 Comments

Get top IP addresses from access log

Using basic Linux commands, we can get top IP addresses that keeps hitting our web servers, whether they are valid visitors or attackers. The command is a combination of awk, sort and uniq. Given that the first column of the … Continue reading

Posted in Linux | Tagged , , , , , | 2 Comments