Results 1 to 6 of 6

Thread: AdBlocker rules

  1. #1
    Newbie
    Join Date
    Mar 2013
    Posts
    10

    Default AdBlocker rules

    I'm trying to figure out exactly what parts of rules from Adblock Plus apply. I think that the Untangle AdBlocker rules are just being matched to parts of a URL and being blocked without any other analysis.

    For example, a rule of .adserver.com will block www.adserver.com or subdomain.adserver.com. Or, .adserver.com/ad* will not block www.adserver.com, but will block .adserver.com/adimag .adserver.com/adsrc, www.adserver.com/adsrv, etc.

    Is this how it operates?

    I found this file (https://gitorious.org/untangle/src/b...ck_rick752.txt) in the source code. Its an AdBlock Plus 1 rule file.

    In this file I find lines like
    Code:
    &partner$subdocument,domain=~akinator.com
    or
    Code:
    #*(class*=_advert_)
    do these perform the same in Untangle AdBlocker as in AdBlock Plus?

    Maybe simpler, what special operations are in Untangle AdBlocker? * for a wildcard is obvious, but are there any others?

    I hope I am being clear on what I am asking.

  2. #2
    Newbie
    Join Date
    Mar 2013
    Posts
    10

    Default

    Bump.

    I'm working on writing a conversion script based on on what I found in another post by WebFooL in this thread. My modifications are stripping out any lines that aren't needed by Untangle AdBlocker.
    Last edited by fsSnowboard; 03-14-2013 at 07:53 AM.

  3. #3
    Untangle Ninja
    WebFooL's Avatar
    Join Date
    Jan 2009
    Location
    Sweden (Eskilstuna)
    Posts
    4,588

    Default

    So what problem do you have?
    And if you post the code we can help you more

  4. #4
    Newbie
    Join Date
    Sep 2012
    Posts
    8

    Default

    Hi, I managed to convert the ABP easylist to Untangle and it was running brilliantly. Thanks for the codes provided.

    However, I have looked at in ABP easylist filters

    i.e

    ||saysuncle.com^*ad.jpg
    ||sbnation.com/campaigns_images/
    ||scenereleases.info/wp-content/*.swf

    When converted, everything will be a string including the "||" and added into Untangle, it is not too difficult to get "||" and "^" (domain indicator) removed, but will Untangle AdBlocker accept * (like in line 1 and 3)

    Also

    allmusicals.com##img[width="140"]
    allmusicals.com##img[width="190"]
    allmyvideos.net###OnPlayerBanner

    Not sure if Untangle Adblock will understand keywords like "###"

    Here are the references of the ABP filters

    https://adblockplus.org/en/filter-cheatsheet

    and

    http://easylist.adblockplus.org/blog...-subscriptions

    Thanks Regards RW

  5. #5
    Newbie
    Join Date
    Mar 2013
    Posts
    10

    Default

    Thanks. I wanted to know what Untangle uses out of the adblock filters for rules. After some more experimentation I also determined it doesn't use the || or ^, and I also stripped out the lines with ## in it because those are html element id filters, and they wern't working in Untangle either.

    My original question was a more general "What special characters does untangle use to filter other than *?", but it appears that only * works. And, anything filtered is matched by the URL.

    I will post my modified code in a new thread soon as soon as I finish it.
    Last edited by fsSnowboard; 03-18-2013 at 08:05 AM.

  6. #6
    Newbie
    Join Date
    Mar 2013
    Posts
    10

    Default

    I finished the script for the most part and posted it at http://forums.untangle.com/ad-blocke...onversion.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2