If the only tool in your toolbox is a hammer that is how you screw in a wood screw ...
try this:
Code:
$ cut -d'-' -f1 /home/work/domain.com/logs/access.log| grep -v '99\.3' | uniq -c | sort -nr|sed 's/\([0-9]\) \([0-9]\)/\1:\2/g' |less
(returns unique hits:IP grep -v will delete your ip pattern)
2742:173.208.249.226
189:158.69.229.6
155:160.202.163.148
153:78.190.44.124
91:82.165.75.132
64:178.137.82.201
62:46.2.77.72
62:201.18.18.173
62:201.18.18.173
62:185.81.155.40
to print to a file
instead of |less
>fileName.*
you don't need a hammer to tighten a screw
After checking the whois
Whoever the fuck he is ...
Code:
ufw deny from 173.208.249.224/29 to any;
Rule added
A CIDR is a group of IPs