mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Created Dynamic filtering: rule syntax (markdown)
parent
138eb9db88
commit
ec189efb52
1 changed files with 15 additions and 0 deletions
15
Dynamic-filtering:-rule-syntax.md
Normal file
15
Dynamic-filtering:-rule-syntax.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
### Type-based rules
|
||||
|
||||
Type-based rules are used to filter specific types of request on a web page. There currently exists five types of request which can be dynamically filtered:
|
||||
|
||||
- images
|
||||
- inline scripts
|
||||
- 1st-party scripts: scripts which are pulled from the same domain name of the current web page
|
||||
- 3rd-party scripts: scripts which are pulled from a different domain name than that of the current web page
|
||||
- 3rd-party frames: frames elements which are pulled from a different domain name than that of current web page
|
||||
|
||||
These rules can apply everywhere, or be specific to a web site. For instance blocking 3rd-party frames is a very good habit security-wise: `* * 3p-frame block`. This rule translates into "block 3rd-party embedded frames everywhere".
|
||||
|
||||
Another example: `wired.com * image block`, which means "block all images when visiting a web page on wired.com".
|
||||
|
||||
### Hostname-based rules
|
||||
Loading…
Reference in a new issue