iOS 9 Ad Blockers

Discussion in 'iOS 9' started by SpasticPat, Aug 7, 2015.

  1. SpasticPat macrumors 6502


    Sep 15, 2011
    Apollo, Pa
    Apple mentioned third party devs being able to create as blockers for safari in iOS 9. Anyone know if any of these are available to use/try yet or will they not be available until iOS 9 is officially released?
  2. batting1000 macrumors 604

    Sep 4, 2011
    Nothing official. Gotta wait till iOS 9 is released.
  3. KALLT macrumors 601

    Sep 23, 2008
  4. superstrikertwo macrumors 65816


    Jun 9, 2008
  5. Hatton920 macrumors 6502

    Aug 9, 2012
  6. Am3r1ca16 macrumors 6502a


    Jul 17, 2012
    New York City
    Wow this is great! I didn't know ios 9 allowed developers to develop ad blocking software!! I want to beta test one!
  7. luke lau macrumors regular

    luke lau

    Jan 25, 2015
    You'll need to compile it yourself with Xcode and install it on your device
  8. lemimouth macrumors regular

    Feb 14, 2015
    Just installed, works great ! Only thing is that space used by ads is not reduced, it just left empty white space.
  9. mkaen macrumors regular

    Jun 7, 2011
    That's because the one linked there is very rudimentary. It's simply a list of ad servers that are blocked. It doesn't do any element hiding or anything else.

    So a page will say "here's a space for an ad, let's load it from". The only thing block party does (currently) is say "oh, I see in my list!" and blocks the request. It doesn't hide the space created for the ad.
  10. mkaen, Aug 9, 2015
    Last edited: Aug 9, 2015

    mkaen macrumors regular

    Jun 7, 2011
    Note that if you want to do system-wide ad/tracker blocking (any iOS version), you can use a Proxy Auto-Config file (PAC). This works great, but only works on wifi.
  11. gaanee macrumors 65816

    Dec 8, 2011
    Would you share more details on how to use this?

  12. KALLT macrumors 601

    Sep 23, 2008
    There are some apps in de App Store that do something similar. Basically, they use proxy servers and VPNs to connect to these websites and block the connections to third-party servers of advertisers, thus no ads. It’s not exactly a solid way of doing it, because you will pretty much hand over your traffic to a man in the middle.
  13. QuarterSwede macrumors G3


    Oct 1, 2005
    Colorado Springs, CO
    I'd just be happy with trackers being blocked. They do far more to slow down site loading than ads do at this point. Just use Ghostery once on a tracker heavy site (ex. to see the difference. It's appalling.
  14. mkaen macrumors regular

    Jun 7, 2011
    This is not true for what I was referring to (PAC). Traffic that is blocked never leaves your phone, and traffic that isn't blocked goes direct without overhead. There is no "man in the middle" required.
  15. mkaen, Aug 9, 2015
    Last edited: Aug 12, 2015

    mkaen macrumors regular

    Jun 7, 2011
    1. Download this PAC file.
    2. Rename the file extension to .js
    3. Edit it as follows:
      1. Define the 'blackhole' proxy like this: var blackhole = "PROXY"; //iOS loopback
      2. Delete the if(typeof(navigator) [...] block.
    4. Save your edited .js file to dropbox.
    5. Create a dropbox link to the file.
    6. Edit the dropbox link so that it points DIRECTLY to the file by changing the prefix to "[...]". Follow the link to test that it loads the raw .js file directly.
    7. Go to settings > wifi > "i" for connection info. Scroll to bottom and paste your link from above into the “Auto” HTTP proxy setting.
      1. Note you'll need to do this for each wifi connection you use, the first time you use it.
    8. Hit back and turn wifi off/on to load (or reload) the file.
    Some people may point you to this post: #6 However, it is a *bad idea* to load someone else's PAC file from a server you don't control. That's because they could at any time change the file to point your traffic wherever, without you knowing. By using your own file, you KNOW that there is not any funny business going on with your traffic.
  16. gaanee macrumors 65816

    Dec 8, 2011
    Thanks mkaen for the explanation and detailed instructions.

  17. lemimouth macrumors regular

    Feb 14, 2015
    Doesn't this slow down the connection, if each query pass through the dropbox file ?
  18. Narcaz macrumors 6502

    Jul 18, 2013
    My post from a previous thread. It should still work, but i couldn't test xcode 7 beta 5 so far.:

  19. KALLT, Aug 10, 2015
    Last edited: Aug 22, 2015

    KALLT macrumors 601

    Sep 23, 2008
    For those interested:
    • AdBlock: “There will be an AdBlock for Safari 9 and iOS ready when those are released.”
    • Adguard: “[W]ith the release of a new Safari version, we will be able to transfer most of the functions of our browser extension on a new track. Unfortunately, some functions will be lost, so that the filtering quality will be slightly lower.” They are positive and somewhat excited for the changes, so they will probably follow soon as well.
    • Adblock Plus: They seem rather reserved at this point, but they did announce an iOS app which is due to be unveiled in the next couple of weeks. However, if I understood that correctly, they are going to release a browser instead of a content blocker extension, so that would not be the same.
    • uBlock: There is no clear answer I can distill from the Github repos. I understand that uBlock is not that actively under development anymore and the requirement for a paid developer licence seems to be a barrier to this open-source project, so it seems unlikely to get a timely release for Safari. uBlock Origin (the fork that seems to gain much more momentum than uBlock proper) is not going to support Safari anymore. On the plus side, the app Purify I mentioned above seems to start with the source code of uBlock.
    I have high hopes for Crystal and Purify. Until that time you can compile your own blocker or use the mechanism suggested above.
  20. Warbrain macrumors 603


    Jun 28, 2004
    Chicago, IL
    While it doesn't do that, it's still nice that it does.
  21. Hatton920 macrumors 6502

    Aug 9, 2012
    I can't use Xcode as I'm running Windows.
  22. Menel macrumors 603


    Aug 4, 2011
    Defeats part of the purpose of saving cellular data :/
  23. gaanee macrumors 65816

    Dec 8, 2011
    Does PAC also block in-app ads and tracking or just the web- safari/chrome?

  24. thekayman macrumors 6502

    Oct 23, 2014

    (tx for the tip mkaen this works great)
  25. gaanee macrumors 65816

    Dec 8, 2011
    Does using PAC slow down browsing?
    And how does it block in-app ads, since apps display ads even when not connected to wi-fi. So does it help to block in-app ads?


Share This Page

161 August 7, 2015