You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.9 KiB
Plaintext
58 lines
2.9 KiB
Plaintext
3 years ago
|
# EDIT THIS FILE AS YOU LIKE TO WHITELIST YOUR OWN DOMAIN NAMES AND SPARE THEM FROM ANY REFERRER CHECKING ###
|
||
|
|
||
|
# VERSION INFORMATION #
|
||
|
#----------------------
|
||
|
# Version: V4.2019.08
|
||
|
# Updated: 2019-07-05
|
||
|
#----------------------
|
||
|
# VERSION INFORMATION #
|
||
|
|
||
|
##############################################################################
|
||
|
# _ __ _ #
|
||
|
# / |/ /__ _(_)__ __ __ #
|
||
|
# / / _ `/ / _ \\ \ / #
|
||
|
# /_/|_/\_, /_/_//_/_\_\ #
|
||
|
# __/___/ __ ___ __ ___ __ __ #
|
||
|
# / _ )___ ____/ / / _ )___ / /_ / _ )/ /__ ____/ /_____ ____ #
|
||
|
# / _ / _ `/ _ / / _ / _ \/ __/ / _ / / _ \/ __/ '_/ -_) __/ #
|
||
|
# /____/\_,_/\_,_/ /____/\___/\__/ /____/_/\___/\__/_/\_\\__/_/ #
|
||
|
# #
|
||
|
##############################################################################
|
||
|
|
||
|
# Add One Entry Per Line - List all your own domains of the sites you host on the server
|
||
|
# This file must exist on your system or Nginx will fail a reload due to a missing file
|
||
|
# Automatic updates will never be able to remove this custom list of yours
|
||
|
# Add One Entry Per Line
|
||
|
|
||
|
# Make sure any domains have dots and special characters escaped as per the Regex examples below.
|
||
|
# For example myfirstowndomainname.com should be entered as myfirstowndomainname\.com
|
||
|
# and my-second-owndomainname.com should be entered as my\-second\-owndomainname\.com
|
||
|
|
||
|
# *****************************************************************************************
|
||
|
# PLEASE MAKE SURE that you use word regex boundaries to avoid false positive detection !!!
|
||
|
# *****************************************************************************************
|
||
|
|
||
|
# As you can see in the examples below the domain "myfirstowndomainname\.com" is entered with a preceding (?:\b) and an ending (?:\b)
|
||
|
# this makes it now "(?:\b)myfirstowndomainname\.com(?:\b)". It is important to use the word boundaries regex formatting.
|
||
|
|
||
|
# BY DEFAULT ALL THE EXAMPLES BELOW ARE COMMENTED OUT AND HENCE NOT ENABLED
|
||
|
# ---------
|
||
|
# EXAMPLES:
|
||
|
# ---------
|
||
|
# "~*(?:\b)myfirstowndomainname\.com(?:\b)" 0;
|
||
|
# "~*(?:\b)my\-second\-owndomainname\.com(?:\b)" 0;
|
||
|
|
||
|
# ------------
|
||
|
# MY WHITELIST
|
||
|
# ------------
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
# NOTE: This file can also blacklist by giving something a value of 1
|
||
|
# but rather please do your blacklisting in the custom-bad-referrers.conf include file.
|
||
|
|
||
|
# NOTE: If you whitelist your own domain here, any words in bad-referrer-words.conf will not be effective if the attacker passes your own domain name in the referrer string.
|
||
|
# SEE NOTES: in bad-referrer-words.conf
|