mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
Better formatting of Version Information Blocks in README and CONFIGURATION Files.
This commit is contained in:
parent
21f82d405a
commit
a41d36d8c5
5 changed files with 52 additions and 23 deletions
|
@ -48,23 +48,23 @@ _tmpnginxA=tmpnginxA
|
||||||
# Start and End Strings to Search for to do inserts into template
|
# Start and End Strings to Search for to do inserts into template
|
||||||
# ***************************************************************
|
# ***************************************************************
|
||||||
|
|
||||||
_startmarker="### Version Information #"
|
_startmarker="_______________"
|
||||||
_endmarker="### Version Information ##"
|
_endmarker="____________________"
|
||||||
|
|
||||||
# ****************************************
|
# ****************************************
|
||||||
# PRINT VERSION INFORMATION INTO README.md
|
# PRINT VERSION INFORMATION INTO README.md
|
||||||
# ****************************************
|
# ****************************************
|
||||||
|
|
||||||
printf '%s\n%s\n%s%s\n%s%s\n%s%s\n%s\n%s' "$_startmarker" "********************************************" "#### Version: " "$MY_GIT_TAG" "#### Bad Referrer Count: " "$BAD_REFERRERS" "#### Bad Bot Count: " "$BAD_BOTS" "********************************************" "$_endmarker" >> "$_tmpnginxA"
|
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" >> "$_tmpnginxA"
|
||||||
mv $_tmpnginxA $_inputdbA
|
mv $_tmpnginxA $_inputdbA
|
||||||
ed -s $_inputdbA<<\IN
|
ed -s $_inputdbA<<\IN
|
||||||
1,/### Version Information #/d
|
1,/_______________/d
|
||||||
/### Version Information ##/,$d
|
/____________________/,$d
|
||||||
,d
|
,d
|
||||||
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
||||||
/### Version Information #/x
|
/_______________/x
|
||||||
.t.
|
.t.
|
||||||
.,/### Version Information ##/-d
|
.,/____________________/-d
|
||||||
#,p
|
#,p
|
||||||
#,p used to print output replaced with w below to write
|
#,p used to print output replaced with w below to write
|
||||||
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
||||||
|
@ -76,16 +76,16 @@ rm $_inputdbA
|
||||||
# PRINT VERSION INFORMATION INTO AUTO-CONFIGURATION.md
|
# PRINT VERSION INFORMATION INTO AUTO-CONFIGURATION.md
|
||||||
# ****************************************************
|
# ****************************************************
|
||||||
|
|
||||||
printf '%s\n%s\n%s%s\n%s%s\n%s%s\n%s\n%s' "$_startmarker" "********************************************" "#### Version: " "$MY_GIT_TAG" "#### Bad Referrer Count: " "$BAD_REFERRERS" "#### Bad Bot Count: " "$BAD_BOTS" "********************************************" "$_endmarker" >> "$_tmpnginxA"
|
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" >> "$_tmpnginxA"
|
||||||
mv $_tmpnginxA $_inputdbA
|
mv $_tmpnginxA $_inputdbA
|
||||||
ed -s $_inputdbA<<\IN
|
ed -s $_inputdbA<<\IN
|
||||||
1,/### Version Information #/d
|
1,/_______________/d
|
||||||
/### Version Information ##/,$d
|
/____________________/,$d
|
||||||
,d
|
,d
|
||||||
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/AUTO-CONFIGURATION.md
|
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/AUTO-CONFIGURATION.md
|
||||||
/### Version Information #/x
|
/_______________/x
|
||||||
.t.
|
.t.
|
||||||
.,/### Version Information ##/-d
|
.,/____________________/-d
|
||||||
#,p
|
#,p
|
||||||
#,p used to print output replaced with w below to write
|
#,p used to print output replaced with w below to write
|
||||||
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/AUTO-CONFIGURATION.md
|
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/AUTO-CONFIGURATION.md
|
||||||
|
@ -97,16 +97,16 @@ rm $_inputdbA
|
||||||
# PRINT VERSION INFORMATION INTO MANUAL-CONFIGURATION.md
|
# PRINT VERSION INFORMATION INTO MANUAL-CONFIGURATION.md
|
||||||
# ******************************************************
|
# ******************************************************
|
||||||
|
|
||||||
printf '%s\n%s\n%s%s\n%s%s\n%s%s\n%s\n%s' "$_startmarker" "********************************************" "#### Version: " "$MY_GIT_TAG" "#### Bad Referrer Count: " "$BAD_REFERRERS" "#### Bad Bot Count: " "$BAD_BOTS" "********************************************" "$_endmarker" >> "$_tmpnginxA"
|
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" >> "$_tmpnginxA"
|
||||||
mv $_tmpnginxA $_inputdbA
|
mv $_tmpnginxA $_inputdbA
|
||||||
ed -s $_inputdbA<<\IN
|
ed -s $_inputdbA<<\IN
|
||||||
1,/### Version Information #/d
|
1,/_______________/d
|
||||||
/### Version Information ##/,$d
|
/____________________/,$d
|
||||||
,d
|
,d
|
||||||
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/MANUAL-CONFIGURATION.md
|
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/MANUAL-CONFIGURATION.md
|
||||||
/### Version Information #/x
|
/_______________/x
|
||||||
.t.
|
.t.
|
||||||
.,/### Version Information ##/-d
|
.,/____________________/-d
|
||||||
#,p
|
#,p
|
||||||
#,p used to print output replaced with w below to write
|
#,p used to print output replaced with w below to write
|
||||||
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/MANUAL-CONFIGURATION.md
|
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/MANUAL-CONFIGURATION.md
|
||||||
|
@ -114,6 +114,27 @@ q
|
||||||
IN
|
IN
|
||||||
rm $_inputdbA
|
rm $_inputdbA
|
||||||
|
|
||||||
|
# *******************************************************
|
||||||
|
# PRINT VERSION INFORMATION INTO Google Ghost Spam README
|
||||||
|
# *******************************************************
|
||||||
|
|
||||||
|
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" >> "$_tmpnginxA"
|
||||||
|
mv $_tmpnginxA $_inputdbA
|
||||||
|
ed -s $_inputdbA<<\IN
|
||||||
|
1,/_______________/d
|
||||||
|
/____________________/,$d
|
||||||
|
,d
|
||||||
|
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_google_analytics_ghost_spam/README.md
|
||||||
|
/_______________/x
|
||||||
|
.t.
|
||||||
|
.,/____________________/-d
|
||||||
|
#,p
|
||||||
|
#,p used to print output replaced with w below to write
|
||||||
|
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_google_analytics_ghost_spam/README.md
|
||||||
|
q
|
||||||
|
IN
|
||||||
|
rm $_inputdbA
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
##### Created by: https://github.com/mitchellkrogza
|
##### Created by: https://github.com/mitchellkrogza
|
||||||
##### Copyright Mitchell Krog <mitchellkrog@gmail.com>
|
##### Copyright Mitchell Krog <mitchellkrog@gmail.com>
|
||||||
|
|
||||||
### Version Information #
|
_______________
|
||||||
********************************************
|
********************************************
|
||||||
#### Version: V3.2017.07.726
|
#### Version: V3.2017.07.726
|
||||||
#### Bad Referrer Count: 5443
|
#### Bad Referrer Count: 5443
|
||||||
#### Bad Bot Count: 498
|
#### Bad Bot Count: 498
|
||||||
********************************************
|
********************************************
|
||||||
### Version Information ##
|
____________________
|
||||||
|
|
||||||
## Update Notification System
|
## Update Notification System
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
##### Created by: https://github.com/mitchellkrogza
|
##### Created by: https://github.com/mitchellkrogza
|
||||||
##### Copyright Mitchell Krog <mitchellkrog@gmail.com>
|
##### Copyright Mitchell Krog <mitchellkrog@gmail.com>
|
||||||
|
|
||||||
### Version Information #
|
_______________
|
||||||
********************************************
|
********************************************
|
||||||
#### Version: V3.2017.07.726
|
#### Version: V3.2017.07.726
|
||||||
#### Bad Referrer Count: 5443
|
#### Bad Referrer Count: 5443
|
||||||
#### Bad Bot Count: 498
|
#### Bad Bot Count: 498
|
||||||
********************************************
|
********************************************
|
||||||
### Version Information ##
|
____________________
|
||||||
|
|
||||||
## Update Notification System
|
## Update Notification System
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
# Nginx Bad Bot and User-Agent Blocker, Spam Referrer Blocker, Anti DDOS, Bad IP Blocker and Wordpress Theme Detector Blocker
|
# Nginx Bad Bot and User-Agent Blocker, Spam Referrer Blocker, Anti DDOS, Bad IP Blocker and Wordpress Theme Detector Blocker
|
||||||
##### The Ultimate Nginx Bad Bot, User-Agent, Spam Referrer Blocker, Adware, Malware and Ransomware Blocker, Clickjacking Blocker, Click Re-Directing Blocker, SEO Companies and Bad IP Blocker with Anti DDOS System, Nginx Rate Limiting and Wordpress Theme Detector Blocking
|
##### The Ultimate Nginx Bad Bot, User-Agent, Spam Referrer Blocker, Adware, Malware and Ransomware Blocker, Clickjacking Blocker, Click Re-Directing Blocker, SEO Companies and Bad IP Blocker with Anti DDOS System, Nginx Rate Limiting and Wordpress Theme Detector Blocking
|
||||||
|
|
||||||
### Version Information #
|
_______________
|
||||||
********************************************
|
********************************************
|
||||||
#### Version: V3.2017.07.726
|
#### Version: V3.2017.07.726
|
||||||
#### Bad Referrer Count: 5443
|
#### Bad Referrer Count: 5443
|
||||||
#### Bad Bot Count: 498
|
#### Bad Bot Count: 498
|
||||||
********************************************
|
********************************************
|
||||||
### 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:
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,14 @@
|
||||||
|
|
||||||
# EASY CONFIGURATION INSTRUCTIONS FOR STOPPING GOOGLE ANALYTICS "GHOST" SPAM
|
# EASY CONFIGURATION INSTRUCTIONS FOR STOPPING GOOGLE ANALYTICS "GHOST" SPAM
|
||||||
|
|
||||||
|
_______________
|
||||||
|
********************************************
|
||||||
|
#### Version: V3.2017.07.726
|
||||||
|
#### Bad Referrer Count: 5443
|
||||||
|
#### Bad Bot Count: 498
|
||||||
|
********************************************
|
||||||
|
____________________
|
||||||
|
|
||||||
Simply using the Nginx blocker does not stop Google Analytics ghost referral spam because they are hitting Analytics directly and not always necessarily touching your website.
|
Simply using the Nginx blocker does not stop Google Analytics ghost referral spam because they are hitting Analytics directly and not always necessarily touching your website.
|
||||||
|
|
||||||
You should use regex filters in Analytics to prevent ghost referral spam.
|
You should use regex filters in Analytics to prevent ghost referral spam.
|
||||||
|
|
Loading…
Add table
Reference in a new issue