µBlock, a lean and fast blocker

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

  1. Chway

    Chway Registered Member

    Joined:
    Jun 18, 2015
    Posts:
    8
    Last edited: Dec 15, 2015
  2. harsha_mic

    harsha_mic Registered Member

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

    to the Chway mentioned site, we are blocking remote fonts globally. However instead of turn-off remote font switch per site.
    I tried to add below dynamic URL filtering rules -
    Code:
    geekzone.fr http://cdn.jsdelivr.net/fontawesome/4.5.0/fonts/fontawesome-webfont.ttf font allow
    geekzone.fr http://www.geekzone.fr/wp-content/themes/magaziner/fonts/fontawesome-webfont.woff font allow
    geekzone.fr http://www.geekzone.fr/wp-content/themes/magaziner/fonts/fontawesome-webfont.woff2?v=4.5.0 font allow
    But still i see the below fontawesome requests being blocked. Is this expected?

    Code:
    no-remote-fonts: * true    --    font    http://www.geekzone.fr/wp-content/themes/magaziner/fonts/fontawesome-webfont.ttf?v=4.5.0
    no-remote-fonts: * true    --    font    http://www.geekzone.fr/wp-content/themes/magaziner/fonts/fontawesome-webfont.woff?v=4.5.0
    no-remote-fonts: * true    --    font    http://www.geekzone.fr/wp-content/themes/magaziner/fonts/fontawesome-webfont.woff2?v=4.5.0
    @Chway I thought we could allow specific resources through dynamic url filters at-least. Lets see what Raymond have to say.

    Note: I was using latest v1.4.1 beta in FF 42
     
    Last edited: Dec 15, 2015
  3. Chway

    Chway Registered Member

    Joined:
    Jun 18, 2015
    Posts:
    8
    Seems like font is not a type supported by the dynamic filtering

    https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-rule-syntax

    For now, I will remove no-remote-fonts: * true from my rules, add the Fanboy's Anti-thirdparty Fonts list and add these lines to my My filters :

     
    Last edited: Dec 15, 2015
  4. gorhill

    gorhill Developer

    Joined:
    Nov 12, 2013
    Posts:
    864
    Location:
    Canada
    These are bad filters, see doc re. filter syntax. Try:

    Code:
    @@/font-awesome$font
    @@/fontawesome$font
    @@/flat-icon$font
    @@/flaticon$font
    ||maxcdn.bootstrapcdn.com^$font
    

    Edit: mistake
     
    Last edited: Dec 15, 2015
  5. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Which lists are you guys using? and which one's are the best in your opinions?
     
  6. @Overkill

    Depends on your location and visiting habits. So the answers you get on your question may have litttle value for you.

    Some testing I did (Netherlands: mostly browsing news, sports and ebusiness stuff)

    1. Easlylist without element hiding
    2. Peter Low's
    3. Easyprivacy
    4. Easylist Dutch

    Enabling more does not seem to have any impact (but again, different browsing habits and location will result to different results)
     
  7. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    Will enabling all malware lists and/or privacy lists help or hurt browsing? I wonder which one blocks more between all 3 privacy lists in ublocko vs ghostery?
     
    Last edited: Dec 17, 2015
  8. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    Privacy will defintely will be helped. If it hurts or not is depends on what kind of functionality on a website is hampered with it..

    Also, trying to configure uBlock in Medium blocking mode would definitely help in privacy and malware hacks to the websites. See references here
    - Medium blocking mode allows you to connect lesser 3rd party domains. But beware, there might be instances where the site fails to function. It is up-to you to noop the necessary scripts/frames for bringing back the functionality of an website.
    - One common attack happening to the website, is through malvertising, where on user clicking on it, they will be redirected through either through 3rd party iframe or script tags. (i think so..)​
    - If you are not ready to deal with the breakage, alteast blocking 3rd party Iframes should help, in thwarting at-least few website hacks!!

    Let me know if you are interested for few common noop rules, to allow website functionality. Which is required for Medium blocking mode.
     
  9. rdsu

    rdsu Registered Member

    Joined:
    Jun 28, 2003
    Posts:
    4,537
    Can you share it?

    I already used the Medium mode, but disable it after a while...
     
  10. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    I've tried blocking 3rd party stuff but most sites don't load properly
     
  11. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    When you say 3rd Party stuff, do you literally mean 3rd party cell or 3rd Party IFrame/Script cells?
     
  12. Overkill

    Overkill Registered Member

    Joined:
    Mar 16, 2012
    Posts:
    2,343
    Location:
    USA
    3rd Party IFrame/Scripts
     
  13. harsha_mic

    harsha_mic Registered Member

    Joined:
    Mar 11, 2009
    Posts:
    815
    Location:
    India
    Ok, I see you are from USA. So, my noop rules should give little breathing room, unless you are using some location specific websites. Then you have to noop them yourself, or post the site not working, we will give the rules for you :)
    Sure. I am not at my personal PC. So, posting here a few. Will update this post by tomorrow, if more left or any corrections to be made.

     
  14. ArchiveX

    ArchiveX Registered Member

    Joined:
    Apr 7, 2014
    Posts:
    1,464
    Location:
    Land of the Light
    Already submitted...
     
  15. rdsu

    rdsu Registered Member

    Joined:
    Jun 28, 2003
    Posts:
    4,537
  16. rdsu

    rdsu Registered Member

    Joined:
    Jun 28, 2003
    Posts:
    4,537
    For now I prefer to stay with some Easy mode + more privacy:

    Settings

    Privacy

    • Disable pre-fetching
    • Disable hyperlink auditing/beacon
    • Prevent WebRTC from leaking local IP addresses
    3rd-party filters
    • My filters‎
    • uBlock filters‎
    • uBlock filters – Badware risks‎
    • uBlock filters – Block-then-redirect‎
    • uBlock filters – Experimental
    • uBlock filters – Privacy
    • uBlock filters – Unbreak
    Ads
    • Adblock Warning Removal List‎
    • Anti-Adblock Killer | Reek
    • EasyList‎
    • Peter Lowe’s Ad server list‎
    Privacy
    • Basic tracking list by Disconnect‎
    • EasyPrivacy‎
    • Fanboy’s Enhanced Tracking List‎
    Malware domains
    • Malvertising filter list by Disconnect‎
    • Malware Domain List‎
    • Malware domains
    • Malware filter list by Disconnect‎
    • Spam404‎
    Custom
    • Adguard Spanish/Portuguese Filter
    • Adguard Spyware Filter‎
    • Block-EU-Cookie-****-List‎
    • facebook annoyances blocker‎
    • Prebake - Filter Obtrusive Cookie Notices‎
    • Youtube: Other Annoyances
    My rules

    * facebook.com * block
    * facebook.net * block
    * fbcdn.net * block
    * twitter.com * block
    facebook.com facebook.com * noop
    facebook.com facebook.net * noop
    facebook.com fbcdn.net * noop
    twitter.com twitter.com * noop
    www.messenger.com fbcdn.net * noop
     
    Last edited: Dec 22, 2015
  17. malexous

    malexous Registered Member

    Joined:
    Jun 18, 2010
    Posts:
    830
    Location:
    Ireland
    Is it possible to have * * 3p block but allow/noop images from a particular 3rd party domain? The only thing that seems to work is to allow/noop everything from that 3rd party domain.
     
  18. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    3,976
    but i can tell you that would you drive crazy. better way is to block specific sites in general instead creating tons of rules for exceptions.
     
  19. malexous

    malexous Registered Member

    Joined:
    Jun 18, 2010
    Posts:
    830
    Location:
    Ireland
    Tried that already. µBlock Origin discards it when I click save.
     
  20. summerheat

    summerheat Registered Member

    Joined:
    May 16, 2015
    Posts:
    1,895
    Use uMatrix instead. It allows for a much more granular control.
     
  21. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    3,976
  22. malexous

    malexous Registered Member

    Joined:
    Jun 18, 2010
    Posts:
    830
    Location:
    Ireland
    Thank you guys. I decided to start using µMatrix.
     
  23. hayc59

    hayc59 Updates Team

    Joined:
    Feb 9, 2002
    Posts:
    2,843
    Location:
    KEEP USA GREAT
    Posting the settings is real cool helped me alot!!
    would be nice to have three settings posted and stuck at the top
    1-easy
    2-medium
    3-hard
    to help us not so smart dudes and dudets ;)
     
  24. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    3,285
    Location:
    Canada
    All the Blocking modes are posted here, courtesy of gorhill :) You might want to check out the "enhanced easy mode" option, which puts you somewhere between Easy mode and Medium mode. Highly recommended if you want above average blocking with minimal hassle :thumb:
     
    Last edited: Dec 21, 2015
  25. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    3,976
    #1741 from rdsu is close to mine - its enough and fair.
     
  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.