This website works better with JavaScript.
Home
Explore
Help
Sign In
writeas
/
web-core
mirror of
https://github.com/writeas/web-core
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Activity
Browse Source
Prevent findBots.sh running when no arg given
master
Matt Baer
6 years ago
parent
ca03ff920a
commit
c0e4c95cfb
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
bots/findBots.sh
+ 5
- 0
bots/findBots.sh
View File
@@ -7,6 +7,11 @@
# usage: findBots.sh application.log
#
if [ -z $1 ]; then
echo usage: findBots.sh [logfilename]
exit 1
fi
cat /var/log/$1 | grep -i 'bot\|spider\|crawl\|scraper\|indexer\|voltron' | awk -F\" '{print $4}' | sort | uniq > bots.txt
rm bots.go
Write
Preview
Loading…
Cancel
Save