From ec189efb52e66463c7b4a9861d752f1513e7b4df Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 31 Dec 2014 11:31:47 -0800 Subject: [PATCH] Created Dynamic filtering: rule syntax (markdown) --- Dynamic-filtering:-rule-syntax.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dynamic-filtering:-rule-syntax.md diff --git a/Dynamic-filtering:-rule-syntax.md b/Dynamic-filtering:-rule-syntax.md new file mode 100644 index 0000000..514aad5 --- /dev/null +++ b/Dynamic-filtering:-rule-syntax.md @@ -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 \ No newline at end of file