mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-03 11:10:47 +00:00
Get totals of bad referrers and bad bots being protected against.
This commit is contained in:
parent
8dd8e89d9b
commit
290120bec4
2 changed files with 4 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
||||||
********************************************
|
********************************************
|
||||||
##### Version Information ##
|
##### Version Information ##
|
||||||
|
|
||||||
If this helps you [why not buy me a beer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BKF9XT6WHATLG):beer:
|
## If this helps you [why not buy me a beer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BKF9XT6WHATLG):beer:
|
||||||
|
|
||||||
##### Created by: https://github.com/mitchellkrogza for use on Nginx Web Server https://www.nginx.com/
|
##### Created by: https://github.com/mitchellkrogza for use on Nginx Web Server https://www.nginx.com/
|
||||||
##### Copyright Mitchell Krog <mitchellkrog@gmail.com>
|
##### Copyright Mitchell Krog <mitchellkrog@gmail.com>
|
||||||
|
|
|
@ -8,6 +8,8 @@ start=$(date +%s.%N)
|
||||||
versionyear=$(date +%Y)
|
versionyear=$(date +%Y)
|
||||||
versionmonth=$(date +%m)
|
versionmonth=$(date +%m)
|
||||||
MY_GIT_TAG=V3.$versionyear.$versionmonth.$TRAVIS_BUILD_NUMBER
|
MY_GIT_TAG=V3.$versionyear.$versionmonth.$TRAVIS_BUILD_NUMBER
|
||||||
|
BAD_REFERRERS=$(wc -l < /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_generator_lists/bad-referrers.list)
|
||||||
|
BAD_BOTS=$(wc -l < /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_generator_lists/bad-user-agents.list)
|
||||||
|
|
||||||
# Temporary database files we create
|
# Temporary database files we create
|
||||||
_inputdbA=/tmp/lastupdated.db
|
_inputdbA=/tmp/lastupdated.db
|
||||||
|
@ -25,7 +27,7 @@ now="$(date)"
|
||||||
end=$(date +%s.%N)
|
end=$(date +%s.%N)
|
||||||
echo $_startmarker >> $_tmpnginxA
|
echo $_startmarker >> $_tmpnginxA
|
||||||
runtime=$(python -c "print(${end} - ${start})")
|
runtime=$(python -c "print(${end} - ${start})")
|
||||||
printf "********************************************\n# Version: "$MY_GIT_TAG"\n********************************************\n" >> $_tmpnginxA
|
printf "********************************************\n## Version: "$MY_GIT_TAG"\n## Bad Referrer Count: "$BAD_REFERRERS"\n## Bad Bot Count: "$BAD_BOTS"\n********************************************\n" >> $_tmpnginxA
|
||||||
echo $_endmarker >> $_tmpnginxA
|
echo $_endmarker >> $_tmpnginxA
|
||||||
IFS=$LASTUPDATEIFS
|
IFS=$LASTUPDATEIFS
|
||||||
mv $_tmpnginxA $_inputdbA
|
mv $_tmpnginxA $_inputdbA
|
||||||
|
|
Loading…
Add table
Reference in a new issue