Find the most common user agents and bots in the access log
which bots are crawling my site | count user agents in access log | find aggressive crawlers | which bot is causing load | awk | access-log | bots | user-agentawk -F'"' '{print $6}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rn | head -20Splits each log line at the double quotes and prints the sixth field, which is the user agent in the combined format. The list shows immediately whether crawlers like AhrefsBot, SemrushBot or GPTBot account for a large share of the traffic. From there you can add targeted blocks in robots.txt or in the web server.
Also searched as
- which bots are crawling my site
- count user agents in access log
- find aggressive crawlers
- which bot is causing load