Browse Source

:frog: 2021 upstream

windhamdavid 3 years ago
parent
commit
9bd720b041
4 changed files with 2129 additions and 2 deletions
  1. 41 0
      README.md
  2. 2062 2
      bad-referrer-words.conf
  3. 18 0
      blacklist-ips.conf
  4. 8 0
      whitelist-ips.conf

+ 41 - 0
README.md

@@ -0,0 +1,41 @@
+
+## Bad Bot Blocker 
+upstream - [https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker](https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker)
+
+#### keep it sync'd with upstream 
+
+edit/prune upstream on localhost
+
+```   
+git checkout master
+git fetch upstream   
+git merge upstream/master  
+(edit README.md, git add, git commit)
+git merge upstream/master
+git filter-branch -f --prune-empty --subdirectory-filter Apache_2.4/custom.d master   
+gpom #git push origin master   
+gpcm #git push code master   
+
+```   
+  
+---
+Sync bad-referrer-words.conf with  https://github.com/matomo-org/referrer-spam-blacklist/blob/master/spammers.txt  
+note: always forget to tap ⌥ to get multiple row carets. ⌘ → to end of line.   
+
+Sync with existing whitelist-ips.conf & blacklist-ips.conf
+
+---
+
+Sync remote host
+   
+```  
+cd /etc/apache2/   
+git clone https://github.com/windhamdavid/custom.d/   
+cd custom.d  
+git pull origin/code master
+sudo apache2ctl configtest
+sudo service apache2 reload
+```
+
+#### Notes:
+

File diff suppressed because it is too large
+ 2062 - 2
bad-referrer-words.conf


+ 18 - 0
blacklist-ips.conf

@@ -12,6 +12,24 @@
 #                                                                            #
 ##############################################################################
 
+
+#######################################
+########## CUSTOM for dev.dw ##########
+#######################################
+
+Require not ip 5.101.0.209
+
+## zgrab scanner
+Require not ip 83.97.20.36
+Require not ip 162.243.129.33
+
+## polaris botnet
+Require not ip 186.183.182.13
+Require not ip 219.77.156.213
+Require not ip 121.162.47.210
+
+
+
 # This is merely an example and gets auto included as since Version 2.2017.05 introduced on 2017-04-19
 # This file must exist on your system or Apache will fail a reload due to a missing file
 # For all intents and purposes you can delete everything inside this file and leave it

+ 8 - 0
whitelist-ips.conf

@@ -15,6 +15,14 @@
 # BY DEFAULT THE EXAMPLES BELOW ARE COMMENTED OUT AND HENCE NOT ENABLED
 # ADD ONLY ONE "Require ip" COMMAND PER LINE !
 
+
+#######################################
+########## CUSTOM for dev.dw ##########
+#######################################
+Require ip 45.79.193.63
+Require ip 2a00:23c7:1106:f400:e4ea:db1c:8f3e:2fbe
+
+
 #Require ip 192.168.1.0 
 #Require ip 192.168.2.0 
 

Some files were not shown because too many files changed in this diff