cat access.log | cut -d'"' -f 6 | grep bot | sort | uniq
Заблокировать лишних в .htaccess
SetEnvIfNoCase User-Agent "AhrefsBot|DotBot|SemrushBot|PetalBot" bad_bot <Limit GET POST HEAD> Order Allow,Deny Allow from all Deny from env=bad_bot </Limit>
Архив
Всего: 2 записи
cat access.log | cut -d'"' -f 6 | grep bot | sort | uniq
Заблокировать лишних в .htaccess
SetEnvIfNoCase User-Agent "AhrefsBot|DotBot|SemrushBot|PetalBot" bad_bot <Limit GET POST HEAD> Order Allow,Deny Allow from all Deny from env=bad_bot </Limit>
find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
Второй вариант:
du -a . | cut -d/ -f2 | sort | uniq -c | sort -rn