CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 03:32:09 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/gorhill/uBlock.git
etag: W/"14a857099ca81e8245077ce8c072ef74"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=wEcf3YlLkakkK%2FmyzvbkXcnxLFbcDbdrHTs6M6goZkEVkiDhOodiIHEEV1KKWNH0uKfspGLo9HnNFRMxPRo30ApHYY%2FlfilD1vckZt1H7vRsYTB19lRdjOZj53z2ubopoD64foBHSJ9way3ZmHuoXyqD5KztHjbf4OADBJABEGAynW6SI7bQn8Ykc%2BD4weD8WTNu7B6Y9XgqNnPSH7%2Fe%2BWWnyP4kweFs9vtScyLVw%2B3v7nBDMWVWEvCes%2FQN%2F0cDUt%2FxTeqNX%2B1jS8SMBRYFFg%3D%3D--BTUQFZFB9Q6i%2BkFa--lzjFDA6wF4KyCKnPxCGXlg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2049938430.1753673528; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 03:32:08 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 03:32:08 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E6D0:37D5F1:12F9A52:1942C59:6886EF38
Add ability to control trusted status of filter lists · gorhill/uBlock@64c1f87 · GitHub
Copy file name to clipboardExpand all lines: src/js/codemirror/ubo-static-filtering.js
Copy file name to clipboardExpand all lines: src/js/static-filtering-parser.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit 64c1f87
committed
Add ability to control trusted status of filter lists
Related discussion:
uBlockOrigin/uBlock-issues#2895
Changes:
The _content of the My filters_ pane is now considered untrusted by
default, and only uBO's own lists are now trusted by default.
It has been observed that too many people will readily copy-paste
filters from random sources. Copy-pasting filters which require trust
represents a security risk to users with no understanding of how the
filters work and their potential abuse.
Using a filter which requires trust in a filter list from an untrusted
source will cause the filter to be invalid, i.e. shown as an error.
A new advanced setting has been added to control which lists are
considered trustworthy: `trustedListPrefixes`, which is a space-
separated list of tokens. Examples of possible values:
- `ublock-`: trust only uBO lists, exclude everything else including
content of _My filters_ (default value)
- `ublock- user-`: trust uBO lists and content of _My filters_
- `-`: trust no list, essentially disabling all filters requiring
trust (admins or people who don't trust us may want to use this)
One can also decide to trust lists maintained elsewhere. For example,
for stock AdGuard lists add ` adguard-`. To trust stock EasyList lists,
add ` easylist-`.
To trust a specific regional stock list, look-up its token in
assets.json and add to `trustedListPrefixes`.
The matching is made with String.startsWith(), hence why `ublock-`
matches all uBO's own filter lists.
This also allows to trust imported lists, for example add
` https://filters.adtidy.org/extension/ublock/filters/` to trust all
non-stock AdGuard lists.
Add the complete URL of a given imported list to trust only that one
list.
URLs not starting with `https://` or `file:///` will be rejected,
i.e. `https://example.org` will be ignored.
Invalid URLs are rejected.1 parent 801d569 commit 64c1f87Copy full SHA for 64c1f87
File tree
Expand file treeCollapse file tree
8 files changed
+114
-14
lines changedFilter options
- src/js
- codemirror
Expand file treeCollapse file tree
8 files changed
+114
-14
lines changed+8-1Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
52 | 51 |
| |
53 | 52 |
| |
54 | 53 |
| |
| |||
89 | 88 |
| |
90 | 89 |
| |
91 | 90 |
| |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 |
| |
93 | 98 |
| |
94 | 99 |
| |
| |||
167 | 172 |
| |
168 | 173 |
| |
169 | 174 |
| |
| 175 | + | |
| 176 | + | |
170 | 177 |
| |
171 | 178 |
| |
172 | 179 |
| |
|
+12-7Lines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 |
| - | |
74 |
| - | |
| 73 | + | |
| 74 | + | |
75 | 75 |
| |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
80 | 85 |
| |
81 | 86 |
| |
82 | 87 |
| |
|
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
| 85 | + | |
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
| |||
255 | 256 |
| |
256 | 257 |
| |
257 | 258 |
| |
| 259 | + | |
258 | 260 |
| |
259 | 261 |
| |
260 | 262 |
| |
|
src/js/codemirror/ubo-static-filtering.js
Copy file name to clipboardExpand all lines: src/js/codemirror/ubo-static-filtering.js+28-3Lines changed: 28 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 |
| - | |
45 |
| - | |
| 45 | + | |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
49 | 60 |
| |
50 | 61 |
| |
51 | 62 |
| |
52 | 63 |
| |
53 | 64 |
| |
54 |
| - | |
55 | 65 |
| |
| 66 | + | |
| 67 | + | |
56 | 68 |
| |
57 | 69 |
| |
58 | 70 |
| |
| |||
218 | 230 |
| |
219 | 231 |
| |
220 | 232 |
| |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
221 | 237 |
| |
222 | 238 |
| |
223 | 239 |
| |
| |||
679 | 695 |
| |
680 | 696 |
| |
681 | 697 |
| |
| 698 | + | |
| 699 | + | |
682 | 700 |
| |
683 | 701 |
| |
684 | 702 |
| |
| |||
715 | 733 |
| |
716 | 734 |
| |
717 | 735 |
| |
| 736 | + | |
| 737 | + | |
| 738 | + | |
718 | 739 |
| |
719 | 740 |
| |
720 | 741 |
| |
| |||
994 | 1015 |
| |
995 | 1016 |
| |
996 | 1017 |
| |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
997 | 1022 |
| |
998 | 1023 |
| |
999 | 1024 |
| |
|
+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
296 | 300 |
| |
297 | 301 |
| |
298 | 302 |
| |
| |||
1570 | 1574 |
| |
1571 | 1575 |
| |
1572 | 1576 |
| |
| 1577 | + | |
1573 | 1578 |
| |
1574 | 1579 |
| |
1575 | 1580 |
| |
|
+20Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
429 | 449 |
| |
430 | 450 |
| |
431 | 451 |
| |
|
src/js/static-filtering-parser.js
Copy file name to clipboardExpand all lines: src/js/static-filtering-parser.js+16-1Lines changed: 16 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
| 103 | + | |
103 | 104 |
| |
104 | 105 |
| |
105 | 106 |
| |
| |||
2244 | 2245 |
| |
2245 | 2246 |
| |
2246 | 2247 |
| |
2247 |
| - | |
| 2248 | + | |
2248 | 2249 |
| |
2249 | 2250 |
| |
2250 | 2251 |
| |
2251 | 2252 |
| |
2252 | 2253 |
| |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
2253 | 2267 |
| |
2254 | 2268 |
| |
2255 | 2269 |
| |
| |||
2338 | 2352 |
| |
2339 | 2353 |
| |
2340 | 2354 |
| |
| 2355 | + | |
2341 | 2356 |
| |
2342 | 2357 |
| |
2343 | 2358 |
| |
|
+23-2Lines changed: 23 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
370 | 370 |
| |
371 | 371 |
| |
372 | 372 |
| |
373 |
| - | |
374 |
| - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
375 | 392 |
| |
376 | 393 |
| |
377 | 394 |
| |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
378 | 399 |
| |
379 | 400 |
| |
380 | 401 |
| |
|
You can’t perform that action at this time.
0 commit comments