@@ -48,6 +48,7 @@ monthtag=$(date +%m)
4848my_git_tag=V3.${yeartag} .${monthtag} .${TRAVIS_BUILD_NUMBER}
4949bad_referrers=$( wc -l < ${TRAVIS_BUILD_DIR} /_generator_lists/bad-referrers.list)
5050bad_bots=$( wc -l < ${TRAVIS_BUILD_DIR} /_generator_lists/bad-user-agents.list)
51+ fake_google_bots=$( wc -l < ${TRAVIS_BUILD_DIR} /_generator_lists/fake-googlebots.list)
5152
5253# **********************************
5354# Temporary database files we create
@@ -69,7 +70,7 @@ endmarker2="### Version Information ##"
6970# PRINT VERSION INFORMATION INTO README.md
7071# ****************************************
7172
72- printf ' %s\n%s%s\n%s%s\n%s%s\n%s' " ${startmarker} " " #### Version: " " ${my_git_tag} " " #### Bad Referrer Count: " " ${bad_referrers} " " #### Bad Bot Count: " " ${bad_bots} " " ${endmarker} " >> " ${tmpapacheA} "
73+ printf ' %s\n%s%s\n%s%s\n%s%s\n%s%s\n%s ' " ${startmarker} " " #### Version: " " ${my_git_tag} " " #### Bad Referrer Count: " " [ ${bad_referrers} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/bad-referrers.list) " " #### Bad Bot Count: " " [ ${bad_bots} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list) " " #### Fake Googlebots: " " [ ${fake_google_bots} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/fake-googlebots.list) " " ${endmarker} " >> " ${tmpapacheA} "
7374mv ${tmpapacheA} ${inputdbA}
7475ed -s ${inputdbA} << \IN
75761,/_______________/d
@@ -88,7 +89,8 @@ rm ${inputdbA}
8889# PRINT VERSION INFORMATION INTO CONFIGURATION.md
8990# ******************************************************
9091
91- printf ' %s\n%s%s\n%s%s\n%s%s\n%s' " ${startmarker} " " #### Version: " " ${my_git_tag} " " #### Bad Referrer Count: " " ${bad_referrers} " " #### Bad Bot Count: " " ${bad_bots} " " ${endmarker} " >> " ${tmpapacheA} "
92+ printf ' %s\n%s%s\n%s%s\n%s%s\n%s%s\n%s' " ${startmarker} " " #### Version: " " ${my_git_tag} " " #### Bad Referrer Count: " " [${bad_referrers} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/bad-referrers.list)" " #### Bad Bot Count: " " [${bad_bots} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list)" " #### Fake Googlebots: " " [${fake_google_bots} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/fake-googlebots.list)" " ${endmarker} " >> " ${tmpapacheA} "
93+
9294mv ${tmpapacheA} ${inputdbA}
9395ed -s ${inputdbA} << \IN
94961,/_______________/d
@@ -165,7 +167,7 @@ rm ${inputdbA}
165167# PRINT VERSION INFORMATION INTO CPanel Instructions
166168# ********************************************************
167169
168- printf ' %s\n%s%s\n%s%s\n%s%s\n%s' " ${startmarker} " " #### Version: " " ${my_git_tag} " " #### Bad Referrer Count: " " ${bad_referrers} " " #### Bad Bot Count: " " ${bad_bots} " " ${endmarker} " >> " ${tmpapacheA} "
170+ printf ' %s\n%s%s\n%s%s\n%s%s\n%s%s\n%s ' " ${startmarker} " " #### Version: " " ${my_git_tag} " " #### Bad Referrer Count: " " [ ${bad_referrers} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/bad-referrers.list) " " #### Bad Bot Count: " " [ ${bad_bots} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list) " " #### Fake Googlebots: " " [ ${fake_google_bots} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/fake-googlebots.list) " " ${endmarker} " >> " ${tmpapacheA} "
169171mv ${tmpapacheA} ${inputdbA}
170172ed -s ${inputdbA} << \IN
1711731,/_______________/d
@@ -184,7 +186,7 @@ rm ${inputdbA}
184186# PRINT VERSION INFORMATION Google Ghost Spam README
185187# ********************************************************
186188
187- printf ' %s\n%s%s\n%s%s\n%s%s\n%s' " ${startmarker} " " #### Version: " " ${my_git_tag} " " #### Bad Referrer Count: " " ${bad_referrers} " " #### Bad Bot Count: " " ${bad_bots} " " ${endmarker} " >> " ${tmpapacheA} "
189+ printf ' %s\n%s%s\n%s%s\n%s%s\n%s%s\n%s ' " ${startmarker} " " #### Version: " " ${my_git_tag} " " #### Bad Referrer Count: " " [ ${bad_referrers} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/bad-referrers.list) " " #### Bad Bot Count: " " [ ${bad_bots} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list) " " #### Fake Googlebots: " " [ ${fake_google_bots} ](https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/_generator_lists/fake-googlebots.list) " " ${endmarker} " >> " ${tmpapacheA} "
188190mv ${tmpapacheA} ${inputdbA}
189191ed -s ${inputdbA} << \IN
1901921,/_______________/d
0 commit comments