index.md (711B)
1 URL filtering 2 ============= 3 4 Description 5 ----------- 6 7 This patch adds URL filtering support to surf, for example to remove 8 advertisements. The file `filters` contains POSIX regular expressions (see the 9 `re_format(7)` manpage). If a HTTP request is about to be made for a URL that 10 matches any of the expressions in the file, it is replaced with `about:blank` 11 instead. This may lead to slightly broken display on pages that expect e.g. 12 images to load correctly. The impact is negligible though. 13 14 Example 15 ------- 16 17 An example list of filters looks like this: 18 19 /favicon\.ico$ 20 eviladvertismentcompany\.{net,com}/ads 21 22 Download 23 -------- 24 25 * [surf-tip-url-filtering.diff](surf-tip-url-filtering.diff) (4176) (20141014)