• Categories
  • Recent
  • Tags
Collapse
  1. Home
  2. Minim
  3. Won't block 3rd party properly

Won't block 3rd party properly

Scheduled Pinned Locked Moved Minim
bugminimmajor
64 Posts 2 Posters 10.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SweetPS SweetP

    @NickC said in Won't block 3rd party properly:

    I think the default behaviour of stripping the www part when adding an exception to Minim is no longer valid with this new better handling of domain/subdomain separation. In essence, www is a subdomain and should be treated as such. πŸ™‚

    Ill look into this
    as im also doing some www assumptions elsewhere in code.
    but good points πŸ‘

    N Offline
    N Offline
    NickC
    wrote on last edited by
    #51

    @SweetP Thanks.

    Also, don’t know if you saw my previous comment re the regex handling/typo. However, if you decide to remove the www handling part of the code, of course that comment would no longer apply. πŸ€“

    1 Reply Last reply
    0
    • SweetPS Offline
      SweetPS Offline
      SweetP
      wrote on last edited by
      #52

      v4.1.2 should be available now
      πŸ™‚

      ~
      Russell
      SweetPProductions.com

      N 1 Reply Last reply
      1
      • SweetPS SweetP

        v4.1.2 should be available now
        πŸ™‚

        N Offline
        N Offline
        NickC
        wrote on last edited by
        #53

        @SweetP All seems to be working as expected. Thank you for doing this, Russell. With these changes Minim has become quite a fierce content blocker for Safari. Nothing quite like it. πŸ‘

        SweetPS 1 Reply Last reply
        0
        • N NickC

          @SweetP All seems to be working as expected. Thank you for doing this, Russell. With these changes Minim has become quite a fierce content blocker for Safari. Nothing quite like it. πŸ‘

          SweetPS Offline
          SweetPS Offline
          SweetP
          wrote on last edited by
          #54

          @NickC said in Won't block 3rd party properly:

          @SweetP All seems to be working as expected. Thank you for doing this, Russell. With these changes Minim has become quite a fierce content blocker for Safari. Nothing quite like it. πŸ‘

          That’s great,
          Thanks for all the great feedback and suggestions.

          ~
          Russell
          SweetPProductions.com

          1 Reply Last reply
          1
          • N Offline
            N Offline
            NickC
            wrote on last edited by NickC
            #55

            @SweetP Sadly, I think I found a bug πŸ˜•

            When adding www.youtube.com as an exception to default blocking rules, all third-party resources get loaded as well, despite explicit blocking in both Minim's default and the exceptions list.

            {
                "trigger" : {
                  "load-type" : [
                    "third-party"
                  ],
                  "resource-type" : [
                    "script",
                    "font",
                    "style-sheet",
                    "popup",
                    "image",
                    "media",
                    "svg-document",
                    "document",
                    "raw",
                    "ping",
                    "fetch",
                    "websocket",
                    "other"
                  ],
                  "url-filter" : "^https?:\/\/www.youtube.com[:\/]"
                },
                "action" : {
                  "type" : "block"
                }
              }
            

            These are the rules that get added and the standard unless-domain = www.youtube.com for the default blocking policy.

            From what I could tell, everything should work as expected, however, third-party resources all load.

            All other behaviour in Minim seems to work as expected, but as soon as you add an exception with first-party resources unblocked, somehow third-party get loaded as well despite the rule seemingly being correct.

            SweetPS 1 Reply Last reply
            0
            • N Offline
              N Offline
              NickC
              wrote on last edited by NickC
              #56

              @SweetP Another bug, if you unblock by default all first-party resources, the generic block rule for first-party gets generated but with an empty array for resource-type which blocks all resources, thus completely preventing any page from loading. πŸ‘·

                {
                  "trigger" : {
                    "resource-type" : [
              
                    ],
                    "load-type" : [
                      "first-party"
                    ],
                    "url-filter" : ".*"
                  },
                  "action" : {
                    "type" : "block"
                  }
                },
              
              SweetPS 1 Reply Last reply
              0
              • N NickC

                @SweetP Another bug, if you unblock by default all first-party resources, the generic block rule for first-party gets generated but with an empty array for resource-type which blocks all resources, thus completely preventing any page from loading. πŸ‘·

                  {
                    "trigger" : {
                      "resource-type" : [
                
                      ],
                      "load-type" : [
                        "first-party"
                      ],
                      "url-filter" : ".*"
                    },
                    "action" : {
                      "type" : "block"
                    }
                  },
                
                SweetPS Offline
                SweetPS Offline
                SweetP
                wrote on last edited by
                #57

                @NickC said in Won't block 3rd party properly:

                @SweetP Another bug, if you unblock by default all first-party resources, the generic block rule for first-party gets generated but with an empty array for resource-type which blocks all resources, thus completely preventing any page from loading. πŸ‘·

                good catch.
                this is a simple fix, and it'll be in the next release

                ~
                Russell
                SweetPProductions.com

                1 Reply Last reply
                1
                • N NickC

                  @SweetP Sadly, I think I found a bug πŸ˜•

                  When adding www.youtube.com as an exception to default blocking rules, all third-party resources get loaded as well, despite explicit blocking in both Minim's default and the exceptions list.

                  {
                      "trigger" : {
                        "load-type" : [
                          "third-party"
                        ],
                        "resource-type" : [
                          "script",
                          "font",
                          "style-sheet",
                          "popup",
                          "image",
                          "media",
                          "svg-document",
                          "document",
                          "raw",
                          "ping",
                          "fetch",
                          "websocket",
                          "other"
                        ],
                        "url-filter" : "^https?:\/\/www.youtube.com[:\/]"
                      },
                      "action" : {
                        "type" : "block"
                      }
                    }
                  

                  These are the rules that get added and the standard unless-domain = www.youtube.com for the default blocking policy.

                  From what I could tell, everything should work as expected, however, third-party resources all load.

                  All other behaviour in Minim seems to work as expected, but as soon as you add an exception with first-party resources unblocked, somehow third-party get loaded as well despite the rule seemingly being correct.

                  SweetPS Offline
                  SweetPS Offline
                  SweetP
                  wrote on last edited by
                  #58

                  @NickC said in Won't block 3rd party properly:

                  @SweetP Sadly, I think I found a bug πŸ˜•

                  When adding www.youtube.com as an exception to default blocking rules, all third-party resources get loaded as well, despite explicit blocking in both Minim's default and the exceptions list.

                  I think this is unfortunately a limitation of the WebKit content blocking API
                  😞

                  It looks as though you can load third party content via a first party script....

                  The only reliable way I could find to block all third party content on YouTube was to block all first and third party requests for the following domains:

                  • *doubleclick.net
                  • *ggpht.com
                  • *googleapis.com
                  • *gstatic.com
                  • *ytimg.com

                  in an update, ill remove the filter for adding domains to minim via the main app

                  ~
                  Russell
                  SweetPProductions.com

                  N 1 Reply Last reply
                  1
                  • SweetPS SweetP

                    @NickC said in Won't block 3rd party properly:

                    @SweetP Sadly, I think I found a bug πŸ˜•

                    When adding www.youtube.com as an exception to default blocking rules, all third-party resources get loaded as well, despite explicit blocking in both Minim's default and the exceptions list.

                    I think this is unfortunately a limitation of the WebKit content blocking API
                    😞

                    It looks as though you can load third party content via a first party script....

                    The only reliable way I could find to block all third party content on YouTube was to block all first and third party requests for the following domains:

                    • *doubleclick.net
                    • *ggpht.com
                    • *googleapis.com
                    • *gstatic.com
                    • *ytimg.com

                    in an update, ill remove the filter for adding domains to minim via the main app

                    N Offline
                    N Offline
                    NickC
                    wrote on last edited by
                    #59

                    @SweetP said in Won't block 3rd party properly:

                    It looks as though you can load third party content via a first party script...

                    That seems to be the case. I didn’t get to try any blocking with unless-top-url instead of the unless-domain. Might be a limitation of the domain selector itself when working with a URL filter. πŸ˜•

                    1 Reply Last reply
                    0
                    • SweetPS Offline
                      SweetPS Offline
                      SweetP
                      wrote on last edited by
                      #60

                      I think I finally have a robust solution...
                      you set me on the right track with unless-top-url

                      Im working on v5 of Minim, which has this much better implementation.
                      I've also reworked the UI to be less confusing, and will be adding some rudimentary regex type support.

                      ~
                      Russell
                      SweetPProductions.com

                      N 1 Reply Last reply
                      1
                      • SweetPS SweetP

                        I think I finally have a robust solution...
                        you set me on the right track with unless-top-url

                        Im working on v5 of Minim, which has this much better implementation.
                        I've also reworked the UI to be less confusing, and will be adding some rudimentary regex type support.

                        N Offline
                        N Offline
                        NickC
                        wrote on last edited by
                        #61

                        @SweetP This great news. Looking forward to the new and improved v5 🎯

                        1 Reply Last reply
                        0
                        • SweetPS Offline
                          SweetPS Offline
                          SweetP
                          wrote on last edited by
                          #62

                          ive just released v5, and its been approved for the App Store. So it should be available soonish
                          πŸ™‚

                          ~
                          Russell
                          SweetPProductions.com

                          N 1 Reply Last reply
                          1
                          • SweetPS SweetP

                            ive just released v5, and its been approved for the App Store. So it should be available soonish
                            πŸ™‚

                            N Offline
                            N Offline
                            NickC
                            wrote on last edited by
                            #63

                            @SweetP Brilliant! It works now with proper separation between domain/subdomain and first/third-party resources are properly blocked.

                            Really like the simplified UI as well. Much cleaner and easier to follow. Great stuff overall! 😁

                            1 Reply Last reply
                            0
                            • SweetPS Offline
                              SweetPS Offline
                              SweetP
                              wrote on last edited by
                              #64

                              Perfect,
                              Thanks for all the feedback

                              ~
                              Russell
                              SweetPProductions.com

                              1 Reply Last reply
                              1
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags