Skip to content

Instantly share code, notes, and snippets.

@antoineguilbert
Last active January 16, 2017 08:28
Show Gist options
  • Save antoineguilbert/42cb1e7fd4d38dc445cbd1db3965f514 to your computer and use it in GitHub Desktop.
Save antoineguilbert/42cb1e7fd4d38dc445cbd1db3965f514 to your computer and use it in GitHub Desktop.
Get top referring URL via Apache logs
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