Last active
January 16, 2017 08:28
-
-
Save antoineguilbert/42cb1e7fd4d38dc445cbd1db3965f514 to your computer and use it in GitHub Desktop.
Get top referring URL via Apache logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cut -d'"' -f4 /var/log/apache/access.log | grep -v '^-$' | grep -v '^http://www.yoursite.com' | sort | uniq -c | sort -rg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment