- Oct 1, 2019
- 1,120
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' *
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' *