mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 03:29:57 +00:00
Please Update Your Include Files to New Regex Formatting
This commit is contained in:
parent
327346d15e
commit
0b7141119c
1 changed files with 27 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
# EDIT THIS FILE AS YOU LIKE TO ADD OR REMOVE ANY BAD USER-AGENT STRINGS YOU WANT TO SCAN FOR ###
|
||||
# EDIT THIS FILE AS YOU LIKE TO BLACKLIST OR WHITELIST ANY BAD USER-AGENT STRINGS YOU WANT TO SCAN FOR ###
|
||||
|
||||
# Add One Entry Per Line - List all the extra bad User-Agents you want to permanently block or whitelist.
|
||||
|
||||
# Add One Entry Per Line - List all the extra bad User-Agents you want to permanently block
|
||||
# This is for User-Agents that are not included in the main list of the bot blocker
|
||||
# This file must exist on your system or Nginx will fail a reload due to a missing file
|
||||
# This allows you finer control of keeping certain bots blocked and automatic updates will
|
||||
|
@ -12,8 +13,28 @@
|
|||
# first and takes precedence over anything below it. This now allows even finer control over the
|
||||
# bad bot blocker. Enjoy !!!
|
||||
|
||||
# Make sure any words that contain special characters are escaped as per the Regex examples below.
|
||||
# Even though this file is called blacklist-user-agents, as mentioned it can also be used to whitelist user agents
|
||||
# By adding them below and setting the 3; to 0; this will permanently whitelist the User-Agent.
|
||||
|
||||
# Make sure any words that contain special characters are escaped and include word boundaries as per the Regex examples below.
|
||||
|
||||
# Example the User-Agent name "someverybaduseragentname1" is entered as "\bsomeverybaduseragentname1\b"
|
||||
# Example the User-Agent name "some-very-bad-useragentname2" is entered as "\bsome\-very\-bad\-useragentname1\b"
|
||||
# the "\b" are word boundaries which prevents partial matching and false positives.
|
||||
|
||||
# *********************
|
||||
# WHITELISTING EXAMPLES
|
||||
# *********************
|
||||
|
||||
"~*\bsomeverygooduseragentname1\b" 0;
|
||||
"~*\bsomeverygooduseragentname2\b" 0;
|
||||
"~*\bsome\-very\-good\-useragentname2\b" 0;
|
||||
|
||||
# *********************
|
||||
# BLACKLISTING EXAMPLES
|
||||
# *********************
|
||||
|
||||
"~*\bsomeverybaduseragentname1\b" 3;
|
||||
"~*\bsomeverybaduseragentname2\b" 3;
|
||||
"~*\bsome\-very\-bad\-useragentname2\b" 3;
|
||||
|
||||
"~*someverybaduseragentname1" 3;
|
||||
"~*someverybaduseragentname2" 3;
|
||||
"~*some\-very\-bad\-useragentname2" 3;
|
Loading…
Add table
Reference in a new issue