Advice Request AdGuard advanced rules QUESTION

Please provide comments and solutions that are helpful to the author of this topic.

Lenny_Fox

Level 22
Thread author
Verified
Top Poster
Well-known
Oct 1, 2019
1,119
1
6,441
2,068
Netherlands
Hi, I have a question about the advanced block rules of Adguard extension. Maybe one of the forum members with an adguard license is so kind to post this question on AdGuard support.

In the User Rules section of the Adguar extension I have put two rules to increase security. First one is based on W_S thread in MT-forum (link), the second one is made using Adguard advanced rules documentation.

My question is related to the second rule. The Adguard info tells me that they follow CSP syntax, so I should use the $CSP rule on specific domains, but ... AdGuard helps writing user rules by coloring the rules (for correct syntax see picture below). It seems that it allows to use HTTP://* wildcard (in stead of a specific domain name).

So my question is: will the second rule work (or is it ignored because of an syntax error)?

||HTTP://*^$csp=script-src 'self' 'unsafe-eval' *

1575800411965.png