mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +00:00
Fix typo in cron job for monitoring (Thanks to Nic Wentling)
This commit is contained in:
parent
f541a05267
commit
ce941757d1
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ To monitor your top referer's for a web site's log file's on a daily basis use t
|
|||
|
||||
##### Cron for Monitoring Daily Referers on Nginx
|
||||
|
||||
`00 08 * * * tail -10000 /var/log/nginx/mydomain-access.log | awk '$11 !~ /google|bing|yahoo|yandex|mywebsite.com/' | awk '{print $11}' | tr -d '"' | sort | uniq -c | sort -rn | head -1000 | mail - s "Top 1000 Referers for Mydomain.com" me@mydomain.com`
|
||||
`00 08 * * * tail -10000 /var/log/nginx/mydomain-access.log | awk '$11 !~ /google|bing|yahoo|yandex|mywebsite.com/' | awk '{print $11}' | tr -d '"' | sort | uniq -c | sort -rn | head -1000 | mail -s "Top 1000 Referers for Mydomain.com" me@mydomain.com`
|
||||
|
||||
This emails you a daily list of referrers using an awk command to exclude domains like google, bing and your own domain name.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue