mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-14 09:09:49 +00:00
V2.2017.04 - Added new include files method for whitelisting your own IP’s and Domain Names
This commit is contained in:
parent
477b85609e
commit
c7acdfa822
7 changed files with 58 additions and 59 deletions
|
@ -2,7 +2,7 @@
|
|||
### THE ULTIMATE NGINX BAD BOT BLOCKER
|
||||
### **********************************
|
||||
|
||||
### Version 2.2017.03
|
||||
### Version 2.2017.04
|
||||
|
||||
### This file implements a checklist / blacklist for good user agents, bad user agents and
|
||||
### bad referrers. It also has whitelisting for your own IP's and known good IP Ranges
|
||||
|
@ -875,8 +875,10 @@ map $http_referer $bad_referer {
|
|||
# ************************************
|
||||
|
||||
# Add your own domain names here to spare them from referer checking (one per line)
|
||||
# Use the new include file method so any further updates will no longer require you to
|
||||
# have to keep putting your whitelisted domains here when updating.
|
||||
|
||||
"~*~*mydomain.com" 0;
|
||||
include /etc/nginx/bots.d/whitelist-domains.conf;
|
||||
|
||||
# START BAD REFERERS ### DO NOT EDIT THIS LINE AT ALL ###
|
||||
"~*000free.us" 1;
|
||||
|
@ -4836,7 +4838,10 @@ geo $validate_client {
|
|||
|
||||
# Whitelist all your own IP addresses from any validate_client checks
|
||||
# Add all your IP addresses and ranges below (one per line)
|
||||
127.0.0.1 0;
|
||||
# Use the new include file method so any further updates will no longer require you to
|
||||
# have to keep putting your whitelisted IP addresses here when updating.
|
||||
|
||||
include /etc/nginx/bots.d/whitelist-ips.conf;
|
||||
|
||||
# ***********
|
||||
# Google Bots
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue