gorhill / httpswitchboard

Point & click to forbid/allow any class of requests made by your browser. Use it to block scripts, iframes, ads, facebook, etc.
GNU General Public License v3.0
1.33k stars 84 forks source link

"Your allow rules" don't work #373

Closed mikhaelkh closed 9 years ago

mikhaelkh commented 10 years ago

"Your allow rules" aren't in "Lists of blocked hosts" and don't work. It also shows "0 used out of 0" while I added an ABP-compatible block rule and it seemed to work. What are the nuances of ABP filters support? Like ABP use "!" to comment a line instead of "#", does this mean I can use both? If a request fits allow rule(s) and block rule(s), which will take effect?

gorhill commented 10 years ago

don't work

I need to know what doesn't work. What rule did you enter in there?

The "n out of N" is for matrix-based rules.

To comment out, you can use ! or #, so long as # cannot be confused with an ABP filter, i.e. any sequence of less than two (##) or greater than three (###) should be interpreted as a comment.

Two kinds of rules can be specified: matrix- or ABP-related rules.

mikhaelkh commented 10 years ago

http://www.kinopoisk.ru/film/760326/video/100414/ @@|http://yandex.st/swf/kinoplayer/ Matrix allows the request, ABP "info" filter blocks it: script <a> http://yandex.st/swf/kinoplayer/13_101/info?nc=... When custom filter in "my allow rules", the video is not playing, when in "my block rules", it is playing.

mikhaelkh commented 10 years ago

"Your block rules: n used out of N" is for matrix-based rules. You mean for plain hostnames? And why "Your allow rules" aren't in "Lists of blocked hosts"?

gorhill commented 10 years ago

@@|http://yandex.st/swf/kinoplayer/

I cannot get what you get. I whitelisted the whole matrix, and nowhere do I see a request which matches yandex.st/swf/kinoplayer.

mikhaelkh commented 10 years ago

Enable Ru AdList subscription.

mikhaelkh commented 10 years ago

A rule can be a plain hostname, or an Adblock Plus-compatible filter

@gorhill, plain hostname can also be treated as an adblock filter, for example ABP rule baddomain.com also blocks http://gooddomain.com/analyze?http://baddomain.com

gorhill commented 10 years ago

Use a wildcard to force the hostname to be seen as an ABP filter:

*baddomain.com

mikhaelkh commented 9 years ago

OK