Pattern specification

Basic
Wildcard If you want to use these characters as ordinary letters, prepend the backslash.
'\#', '\?', '\*', '\+'

Also, you can use the regular expression by surrounding with[].
All patterns are distinguished between uppercase and lowercase letters.
Wildcard description
'#' matches 0-9 one of the numbers.
ex.1)Pattern string = IMG#.jpg
If a URL includes IMG0.jpg or IMG1.jpg or ... or IMG8.jpg or IMG9.jpg, it is matched.
In the case of http://www.test.com/IMG.jpg, because a number doesn't come after "IMG", this URL isn't matched.
ex.2)Pattern string = IMG###.jpg
If a URL includes IMG000.jpg or IMG001.jpg or ... or IMG998.jpg or IMG999.jpg, it is matched.
In the case of http://www.test.com/IMG0a1.jpg, because it doesn't include three consecutive numerical value, this URL isn't matched.
'?' matches with any single character.
ex.1)Pattern string = IMG_?.jpg
If a URL includes the expression that some one character is inserted between IMG_ and .jpg, it is matched.
In the case of http://www.test.com/IMG_l.jpg, this URL is matched.
In the case of http://www.test.com/IMG_00.jpg ,two characters(00) are sandwiched between IMG_ snd .jpg, it isn't matched.
ex.2)Pattern string = IMG_???.jpg
This pattern matches the URL that some three characters are inserted between between IMG_ and .jpg.
'*' matches with any zero or more characters.
ex.)Pattern string = IMG_*.jpg
If a URL includes the expression that some zero or more characters is inserted between IMG_ and .jpg, it is matched.
Therefore it matches both of IMG_.jpg, IMG_000.jpg and IMG_000abc.jpg.
'+' matches with any one or more characters.
ex.)Pattern string = IMG_+.jpg
If a URL includes the expression that some one or more characters is inserted between IMG_ and .jpg, it is matched.
Therefore it matches both of IMG_.jpg, IMG_000.jpg and IMG_000abc.jpg. It don't match, if there is nothing between IMG_ and .jpg.
Therefore it matches both of IMG_000.jpg and IMG_000abc.jpg.
The pattern enclosed in '[]' is treated as a regular expression.
Regular expressions conform to Java specifications.
ex.)[https?://www\.test\.com/IMG_*\.jpg]
Pattern match
If you do not apply a scheme such as http://, it will be automatically supplemented.(add ^\w+://)
If you make a pattern like *test.com, it will match the URL, such as http://other.com/?page=test.com.
Start with *.or http://*.. (Replace *. with ((?![./]).)*)
ex.)Pattern string =*.test.com
Match mobile.test.com, doc.test.com
However, mobile.doc.test.com does not match because the subdomain contains ..
This is not necessary because this part is automatically complemented by the browser.
This description will be replaced internally to https?:// to prevent false positives.
Ad block
If you do not use wildcard, it will be faster.
In addition, performance is worse if there is a complex pattern in the regular expression.
If there is a specified string in the URL, block it.
ex.)Pattern string =ad.jpg
Block http://test.com/ad/ad.jpg, https://test.jp/ad/img/ad.jpg etc.
See the wildcard description for more information.
ex.)Pattern string =/ad/+.jpg
Block http://test.com/ad/01.jpg, https://test.jp/ad/img/advertisement.jpg etc.
Block all specified hosts.
  • Perfect match
h ad.test.com Specify put a space after the the 'h' as.
It is useful to block http://ad.test.com without blocking http://test.com.
Wild cards can also be used.
ex.)h ad.+.com, h ad.test.*
127.0.0.1 ad.com can also be specified in a host format, such as.
  • Partial Match
c ad.com Specify put a space after the the 'c' as.
Block http://ad.com, http://abc.ad.com, http://ad001.ad.com etc.
Wild cards can NOT be used.
  • When using regular expressions in host block
h [test\.com] can be specified as.