µBlock, a lean and fast blocker

Discussion in 'other software & services' started by gorhill, Jun 23, 2014.

  1. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,348
    Location:
    USA
    When element picker gives you options, do you just click on the create button or copy the best rule to the filters box?

    Code:
    ###vHkFSetsL6u3deVMxGf5NTWwT > .UkdQvoZSO47xTVBgJ5Br
    EDIT: The line above seems to hides the ad, but after the page reloads it comes back... can't figure out the net filters o_O
     
    Last edited: Jun 13, 2016
  2. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    If you want to select the other filter than the suggested filter, just choose the other suggested filters. Then you can click "preview" button, to see if its works or not.

    This looks a random string generator. So, the filter may not owrk all the time, as the ids of the element changes each time. We should go for a more broader filter. I cannot really help unless i see it and examine html myself . Will do it tonight after i go back to home :)
     
  3. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    @gorhill

    Someone at mozillazine & bugzilla complained about ABP being slower with e10's turned on for Nightly release. In his comment at the end, he said it is same with uBlock Origin too when compared to Vanilla Nightly.

    Unfortunately, i do not have nightly at this time. Would you be able to verify this with the method mentioned in above bugzilla comment...
     
  4. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    @ harsha & overkill - those are script generated elements - you need to determine the script and block it.

    put here the address of the website and some might help you.

    PS in firefox it is more easy than in opera to find the script - firefox shows "ev" after an element when a script is creating it. (inspector)
     
  5. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    True!!
    He already provided site on the previous page. It is that i am at work place before, so did not open the said site :)

    @Overkill
    I tried in my machine now, and could not able to reproduce at first. Looks like my selection of filter lists are blocking it!

    So, here are the options for your friend -
    Option 1: Ask him to add Peter Lowe’s Ad server list

    Option 2:
    Add below filters -
    Code:
    ||mgid.com^
    1337x.to###mgbl49472
     
    Last edited: Jun 13, 2016
  6. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    i dont get ads while uBlock was off - i think those are also blocked from my windows hosts file. (ublock uses same list)

    idd mgid is locked here by hosts file. (several entries)

    so activate the hosts-file.net hosts file in ublock and set l337-site to "noop" (grey) instead green - green means that also such locked sites are allowed. "noop" respects filter lists.
     
  7. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,348
    Location:
    USA
    This seems to be blocking the ads even after reloads, may I ask how you figured it out?
     
  8. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    either he used the element picker - you was advised to use it - several times.
    and by inspecting the ad element with browser inspector. this is for experienced user but feel free to learn usage of it.
    -> right mouse button on element (ad, picture, text whatever) and "Inspect element" (similar).
    as mentioned firefox can show the script if existing.
     
  9. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,348
    Location:
    USA
    Well I have tried, but i'm not as experienced with EP as some users here
     
  10. Reality

    Reality Registered Member

    Joined:
    Aug 25, 2013
    Posts:
    1,201
    Been playing around with ublock and umatrix for the last week or so. So far these look really promising and I'm really excited about what they can do. Thankyou Gorhill for these amazing utilities. I like the default deny approach as well.

    Right now I'm running them in combo with Noscript RP Better Privacy and SelfDestructCookies as I learn the ropes - there's overlapping but there's no performance issues at all. I did lots of playing around including using EP, and being in advanced user mode but done in Sandboxie so any mistakes would be fixed by just closing the browser and starting again. I also exported some "my filters" and imported them again outside the sandbox no problems. Obviously there's a long way to go in becoming fluent with these tools.

    Ive read lots of info on github. I'm finding the English instructions a bit hard to understand at times (language barrier?). Is there a complete instruction pdf or something, that is available somewhere?

    Some Questions:
    I've been trying to find out if all visual references to facebook, twitter, google+, linkedin etc on a webpage, report back to base WITHOUT you clicking on them - That is: like buttons, links, icons, and anything else. Does anyone know?

    Ideally I want to PERMANENTLY block ALL beacons or those 1x1pixel tracker thingees. I want to block ALL facebook, twitter, linkedin and as much google as I can ( I watch a little youtube and that's it). I've successfully used the EP to ditch a FB and twitter link plus 2 buttons on a website but I want to make all these elements go away for all sites. I have no interest in these sites at all and I don't plan on starting. Is there a way to do that?
     
  11. gorhill

    gorhill Guest

    Dynamic filtering is best for this -- and would allow you to bypass the block on specific pages if ever you need to. There is a mini tutorial for this.
     
  12. hayc59

    hayc59 Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    2,841
    Location:
    KEEP USA GREAT
    Where do you add this? thank you
    ------------------
    ||mgid.com^
    1337x.to###mgbl49472

    -------------------
     
  13. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
  14. hayc59

    hayc59 Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    2,841
    Location:
    KEEP USA GREAT
    Opps a daisy...I am crazy..I am using PaleMoon ;)
     
  15. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    these filters (any static/cosmetic filter) are to be added in My Filters tab.
    Not sure what do you mean. But it works in Palemoon too!
     
    Last edited: Jun 15, 2016
  16. hayc59

    hayc59 Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    2,841
    Location:
    KEEP USA GREAT
    Just copy and paste?
     
  17. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    Yes! And you would need to click Apply Changes button ;)

    B/w I see the offending scripts (from mgid.com) are blocked through easylist/fanboy ultimate list now inaddition to Peter Lowe’s Ad server list‎. So, if you have any of these filter lists selected and have them updated, you should not see the ads.
     
  18. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,294
    as mentioned mgid is blocked by default if you have the (most reliable) host file in ublock active.
     
  19. Reality

    Reality Registered Member

    Joined:
    Aug 25, 2013
    Posts:
    1,201
    Thanks gorhill. I've been having some on and off probs with github becoming inaccessible and subsequently timing out. It happens after having RP temporarily allowing something so I could see images. A reboot fixes it. I'm sure this was before I installed umatrix and ublock. Havent got to the bottom of it yet- haven't had time. Found lots more info following your link but look forward to being able to see more images.

    Windows Security said @ post #357
    I'd been going through the umatrix thread (I'm up to pg 15) I came across the above post and was hoping something has been done in this area - Is there a way to block all these dreaded trackers (1x1 pixel tags) in one go? Would it be a simple matter to have images blocked within a size range? ie only allow images larger than and smaller than (like a user adjustable setting at each end of the scale ....if that makes sense) - I think this is a really important issue.
     
  20. @gorhill

    uBlock and uMatrix have diifferent privacy options. Why not clean the code and combine those different options in one routine? Advantage is less code and more functionality. May be add Chrome's ----disable-reading-from-canvas switch also as an option (Firefox also has a simular option)?
     
    Last edited by a moderator: Jun 16, 2016
  21. gorhill

    gorhill Guest

    You can't know the size of an image resource before connecting to the server (even then, the server won't always properly set the Content-Length in response headers). Just connecting to the server is what accomplishes the tracking. Also, the tracking is not the content of the pixel (RGB value), it's through the URL itself. So if the URL of the tracking pixel has a pattern, a blocking filter for it can be created.
     
  22. @gorhill I applaud and respect your effort to create valued extensions like uBlock and uMatrix. Maybe post mortem analysis and fuzzy logic is not your stronghold, but there are enough examples how this can be done (when Microsoft can do it, I am sure you can do it.)

    Tip1: use logic simular to Microsoft's solution against tracing cookies. Define how many connections through pixel source are allowed and block them when threshold is reached.

    Server connection established through image and size of image is less than {user value ImgSize, e.g. 1x1}
    ==> then store [Image Source URL domain] add 1 to [domain count]

    When [Image Source URL domain].[domain count] is higher than {user value PxlPings, e.g. 3}
    ==> then create block rule for [Image Source URL domain]


    Tip2: have a look at the code of Prvacy Badger (also collects to which domains is connected).
     
    Last edited by a moderator: Jun 16, 2016
  23. When You use pixel tags from ad services the tracking is on campaign level, so the pixel value is irrelevant (You just want to known the respons for a specific action). Although less common when using e-mail campaigns it is posible to give the one pixel tag a unigue value, so you know the response on person level (every mail had a unique pixel tag value, so you know who clicked on the link).
     
  24. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    18,178
    Location:
    The Netherlands
    I'm sorry guys but this doesn't make any sense to me. Why would I make rules for only one session? I think all the changes should be permanent, and if you want them to be temporary, then make a button for that. Good idea or not?
     
  25. Jarmo P

    Jarmo P Registered Member

    Joined:
    Aug 27, 2005
    Posts:
    1,207
    It does make sense, lots, to make temporary rules by default. Typically when we browse unknown sites we are lazy and whitelist too much. Just to see the content. We don't want any lax permanent rules.

    When I want make permanent rules I am on a site that I have been usually visiting before and know I'm going to have to do the same whitelisting again and again. That is where we need the concept of permanence.
     
  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.