UBlock Origin Lite - Nice adblocker for modern challenges

Discussion in 'privacy general' started by Mrkvonic, Jun 7, 2024.

  1. Sampei Nihira

    Sampei Nihira Registered Member

  2. Sampei Nihira

    Sampei Nihira Registered Member

    Guys,I would need some information.
    In this latest version of uBlock Origin Lite the choice of filters used remains even after updating the extension version, or, are filters you had disabled selected again?

    I read some feedback on MT and opened a issue.
     
    Last edited: Mar 2, 2025
  3. Sampei Nihira

    Sampei Nihira Registered Member

    To check the Strict Blocking of uBlock Origin Lite use this:

    Code:
    2cnt.net
    you will see:


    https://ibb.co/Gfsbhmqb

    the red arrow warns you that there was a "malicious" link blocking that was done by the browser (caused by uBlock Origin Lite).

    If you click with your mouse on what is highlighted by the blue arrow, you will see which list of filters is responsible for the Strict Blocking:


    https://ibb.co/8DsKkyfb
     
    Last edited: Mar 2, 2025
  4. 1PW

    1PW Registered Member

  5. Sampei Nihira

    Sampei Nihira Registered Member

    Next version of uBlock origin Lite will support custom DNR rules:

    https://github.com/uBlockOrigin/uBOL-home/releases/tag/uBOLite_2025.601.2131

    It is possible to see that Gorhill radically changes his mind and implements what he should have done long before.

    https://github.com/uBlockOrigin/uBOL-home/discussions/323

    I believe it is difficult (not impossible) to use DNR rules to achieve efficient dynamic filtering.
    Because of the necessary exception rules.

    Much more feasible to get DNR rules to increase the privacy of uBlock Origin Lite with Ping,Beacon...............
    Interesting import/export.

    I think it is easy for many users to use AI,I have already tried,for writing YAML compatible custom DNR rules.
     
  6. 1PW

    1PW Registered Member

  7. Sampei Nihira

    Sampei Nihira Registered Member

    Guys I wrote a DNR rule to block Ping,Beacon,CSP.
    As far as I understand,but my IT studies had not included writing DNR rules,so I could be wrong,it is not possible,unfortunately,to block WebRTC.

    0.png


    0a.png

    I will write you the code you should copy it and put it into uBlock Origin Lite and I assume it will turn as in my image into YAML format:

    Code:
    [
      {
        "action": {
          "type": "block"
        },
        "condition": {
          "resourceTypes": [
            "ping",
            "object",
            "csp_report"
          ]
        },
        "id": 1
      }
    ]
    The code to copy works !!!!!! :D:D:D:D:D:D:D

    I will insert the test:

    https://apps.armin.dev/ping-spotter/


    P.S.

    A thank you would be appreciated.;):):thumb:
     
    Last edited: Jun 7, 2025 at 12:30 PM
  8. Bertazzoni

    Bertazzoni Registered Member

  9. Sampei Nihira

    Sampei Nihira Registered Member

    With the help of AI, I added 1 rule that block these test:

    https://browserleaks.com/proxy


    if you write more rules later you have to enter an ID with higher sequence number.

    Code:
    [
      {
        "action": {
          "type": "block"
        },
        "condition": {
          "resourceTypes": [
            "ping",
            "object",
            "csp_report"
          ]
        },
        "id": 1
      },
      {
        "action": {
          "type": "block"
        },
        "condition": {
          "urlFilter": "|*/proxy.js",
          "resourceTypes": [
            "script"
          ]
        },
        "id": 2
      }
    ]

    Almost certainly the code above is improvable.
    Any help is appreciated.;):thumb:

    I am satisfied with the improved privacy of uBlock Origin Lite.

    P.S.

    Removed WebRTC rule because blocking "webrtc" searches.


     
    Last edited: Jun 8, 2025 at 4:37 AM
  10. Hadron

    Hadron Registered Member

    UBlock Origin Lite works much better than I expected.
     
  11. Jan Willy

    Jan Willy Registered Member

    @Sampei Nihira
    You did and do a wonderful job. Thank you very much.
     
  12. Sampei Nihira

    Sampei Nihira Registered Member

    :thumb:;):)

    Also kees1958 has some problems in DNR rules:

    https://github.com/uBlockOrigin/uBOL-home/issues/362

    I wrote another WebRTC rule that no longer blocks searches but I am not satisfied with it at all:

    Code:
    [
      {
        "action": {
          "type": "block"
        },
        "condition": {
          "resourceTypes": [
            "ping",
            "object",
            "csp_report"
          ]
        },
        "id": 1
      },
      {
        "action": {
          "type": "block"
        },
        "condition": {
          "urlFilter": "|*/proxy.js",
          "resourceTypes": [
            "script"
          ]
        },
        "id": 2
      },
      {
        "action": {
          "type": "block"
        },
        "condition": {
          "regexFilter": "(^|/)webrtc\.js(\?.*)?$",
          "resourceTypes": [
            "script"
          ]
        },
        "id": 3
      }
    ]
    P.S.

    Improvements to the WebRTC rule.
     
    Last edited: Jun 8, 2025 at 8:21 AM
  13. Sampei Nihira

    Sampei Nihira Registered Member

    It is interesting to consider that the syntax does not support “thirdparty.”
    So at the moment it is difficult for example to block thirdparty from all HTTP domains.

    I now know how to use “third party.”
    But I don't have the ability to know what instruction to use next to write a Hard Mode + TLD
    Example:

    Code:
    action:
      type: block
    condition:
      urlFilter: http://
      domainType: thirdParty
      resourceTypes:
        - xmlhttprequest
    And also there would be the necessary exceptions.
    Someone better than me will certainly be able to do it.:thumb:;):)


    But it is possible to block all HTTPs.
    This also blocks all HTTP malwares.
    This rule allows blocking HTTP malwares exploiting port 443 even if you have blocked with an fw rule all TCP ports but not obviously port 443.
    It is certainly recommended in Edge.


    Code:
    action:
      type: block
    condition:
      urlFilter: http://
      resourceTypes:
        - main_frame
        - sub_frame
        - xmlhttprequest
        - script
        - image
        - stylesheet
        - object
        - font
        - media
        - websocket
        - other
    ---
    It is possible to copy the rule and add it.
    Don't forget to save.
     
    Last edited: Jun 8, 2025 at 11:55 AM
  14. Jan Willy

    Jan Willy Registered Member

    My rule to block http:
    action:
    type: block
    condition:
    urlFilter: http://
    resourceTypes:
    - main_frame
    ---

    PS1: How do you make 'code' of it for this forum?

    PS2: Now I know.

    Code:
    action:
      type: block
    condition:
      urlFilter: http://
      resourceTypes:
        - main_frame
    ---
     
    Last edited: Jun 8, 2025 at 12:32 PM
  15. Sampei Nihira

    Sampei Nihira Registered Member

    I did not understand the question.

    P.S.
    Ah....OK.
     
    Last edited: Jun 8, 2025 at 11:45 AM
  16. JRViejo

    JRViejo Super Moderator

    See BB Codes under CODE.
     
  17. Bertazzoni

    Bertazzoni Registered Member

    Click the "+" sign in the editor, then choose "</> code".
     
  18. bjm_

    bjm_ Registered Member

    Will uBO Lite get an element picker/zapper mode?
     
  19. Jan Willy

    Jan Willy Registered Member

    Thanks.
     
  20. Jan Willy

    Jan Willy Registered Member

    Thanks.
     
  21. JRViejo

    JRViejo Super Moderator

    Jan Willy, you're welcome! Take care.
     
  22. Jan Willy

    Jan Willy Registered Member

    If I understand you well, I think you have to make a separate rule to allow trusted TLD's.
     
    Last edited: Jun 8, 2025 at 4:59 PM
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice