Wednesday, October 11, 2017

System wide ad blocking with AdBlock for iOS

After Apple's recent policy change, all VPN-based adblocker in the appstore, including Adblock for iOS have been banned by Apple, which was a dissapointment to all users, but the developers of Adblock have found a way around this with their most recent v4.1 update release which introduces a combination of a new DNS proxy based blocking mechanism and a Safari content blocker. On top of that, the v4.1 release now includes the ability to export/import rules and lists from and to your device, along with a new module that lets us import rules straight from a .txt file instead of having to copy paste anything.

If you're already an Adblock user before the v4 update and you had icloud enabled for adblock, then according to the developers you should already have the previous rules in adblock imported to the DNS proxy rules. If not however, the video below will show you how to import rules from a raw .txt file, I've gotten adblock's official list that they use as a default here so we'll use that:

Updated domain list : goo.gl/rs8xDQ








The second new feature that was implemented is the ability to share your DNS rules with other adblock users using the export/import function. Say, you have created a list that works very well to block ads, you can now share that entire list with another user with just a few taps instead of having to copy every single rules over. Or you can simply use this feature as a back up for your rules, in case you lose your custom rules list for whatever reason. This feature allows for either the entire list of rules that you have or just certain groups. You can share the list via email and adblock will automatically import all the rules from the exported file :)  The video below will demonstrate how this function works:

*in the video I after exporting the list, I deleted all of my rules in order to show how they will get imported once again, this is not a required step.




With that said, Adblock should now be working really well with the new rules, I hope that this tutorial have helped you. :)


50 comments:

  1. Thank you so much for this! My disregards to Apple for scamming its users.

    ReplyDelete
  2. 😘⭐️⭐️⭐️⭐️⭐️

    ReplyDelete
  3. Hey i was wondering is there a way to block crunchyroll ads in Adblock?

    ReplyDelete
    Replies
    1. I have discussed this with the developers of adblock, and sadly it's not really possible, you can use the DNS log to find and create new custom rules, but it doesn't work with all of their ads :/

      Delete
    2. It is super easy, block scontent.xx.fbcdn.net the animes will try to load the ads, but the ads themsef will be blocked

      Delete
    3. scontent.xx.fbcdn.net will block some functions of messenger. Facebook ads are sadly not blockable by hosts.

      Delete
  4. Wow... this actually worked blocking ads on another app in my iphone x. Impressed by the user who did this, and not happy with ad block for not implementing it automatically.

    ReplyDelete
    Replies
    1. thanks alot :) credz to the devs actually, because I didn't just figure this out, they helped me out greatly with this tutorial, so I just decided to share the knowledge :) and to clear their names a bit, I did ask why it wasn't implemented by default, and it turns out, that the app would almost certainly be banned from the appstore if this feature was implemented by default, that's why I made this article myself, because they can't even make their own tutorial showing how to do this without risking the app being banned

      Delete
  5. Hi, is there any way to block ads in Overcast and Tapatalk?

    ReplyDelete
    Replies
    1. here‘s a list,that heavily focused on in app ads,not like some others which are hosts files based on PC ads.(someone collected them from the Dns Monitoring section)

      They have literally blocked all ad domains which are being invoked in apps. For Safari though I suggest you to use Adguards content blocker in addition to the current adblocker,because you can‘t block any specific content on a website with hosts files.

      Delete
    2. Im an idiot, heres the list: https://drive.google.com/open?id=1PbyjB4Bk5nSL3IaPdtVhm4Srs5iKmzfD

      Delete
    3. is that list updated frequently ? it dose not block in app ads on games by Ketchapp, such as Knife Hit, Dunk Line, .. etc

      Delete
  6. Thank you so much for this it worked for me
    I couldn’t dind anything that could block ads on crunchyroll before
    Again thank you for that :D

    ReplyDelete
  7. After this process ads are still showing on the official Reddit app. What gives?

    ReplyDelete
  8. Adaway list work pretty well for me !

    Special hosts file for AdAway containing mobile ad provider
    https://adaway.org/hosts.txt

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. Guys I have upload Jacob Bergfald list that focused on InApp Ads in TXT format and will be update it frequently

    Updated domain list: https://goo.gl/nhaELN

    please let me know if you have any domain to be added

    ReplyDelete
    Replies
    1. this is very good super thank you:)))

      Delete
    2. This man actually copied all domains from my very old list.
      How do i know? I saw some normal words in the list like many or on, that were exactly in my old list(Dont ask me why). Also the domains with two dots.
      Here is my updated one: https://github.com/BlackJack8/iOSAdblockList

      Delete
  11. It’s not working for me for some reason

    ReplyDelete
  12. must the file be on a website?
    How do I import a local hosts file that's on my Mac?

    ReplyDelete
    Replies
    1. I figured it out:
      To create your hosts file:
      First of all, get it from a source like https://github.com/StevenBlack/hosts or create one yourself.
      Open it in Pages or Word, and SAVE it in a TEXT ONLY format. On a mac, I suggest iCloud/TextEdit directory.

      THEN copy the Hosts file to the iPhone:
      I used an app called FileExplorer to select the file on iCloud, and copy it to a Local/Downloads directory. DO NOT IMPORT A FILE ON THE iCloud drive into AdBlock, or you will forever have a message “Syncing iCloud”!!! USE A LOCAL FILE!

      Now, to import the Hosts file into AdBlock, do the following on your iPhone or iPad:
      If AdBlock isn’t running (which it always should be) then start it.
      in DNS settings: click “Settings”, then “Import DNS rules”.
      Next, open the “Files” utility, click on Recents and single click on your Hosts-Adblock.txt or whatever you named it.
      Now in the upper right corner, see the box with the UP ARROW? Click that.
      Scroll the color App icons from right to left until you see “Copy to AdBlock”, and click it.
      Your Adblock DNS import window should pop up. Click the “DONE” button in the upper right corner.
      Watch it import your hosts settings. It takes about 60 min on iPhone 7.

      Delete
    2. This list is not based on mobile ads. If you add all hosts from stevenblack, it will slow the device down. Try out my list: https://github.com/BlackJack8/iOSAdblockList

      Delete
  13. Thanks for sharing this blog. This is so informative blog.

    IOS App Development Course in Delhi

    ReplyDelete
  14. Thank you for this tutorial. Very helpful.

    ReplyDelete
  15. With the Popularity of iOS Devices comes the threat of hacking. FastestVPN is the Best iOS VPN that encodes all your personal and financial data securing it from intruders.

    ReplyDelete
  16. And using VPN on mobile devises will be useful?

    ReplyDelete
  17. It's not even useful, it's a necessary thing, like bestvpnrating.cоm

    ReplyDelete
  18. Gracias, excelente tutorial, yo lo tenia en ios 10.3.3 pero actualize de telefono y se me filtraba la publicidad con esta configuracion ya quedo!

    ReplyDelete
  19. I´ve got a custom blocklist to enhance the adblocking.
    https://github.com/BlackJack8/iOSAdblockList
    The existing blocklist of the app is just inacceptable, because it lets tons of ads through. My list should help.

    ReplyDelete
  20. It was really amazing and intresting article. I love reading it.
    android-vs-ios

    ReplyDelete
  21. It was a very good article on AdAway Apk . I enjoyed reading your blog. By the way thanks for sharing your information.

    ReplyDelete
  22. Really Liked the information you have provided. I have an article relaed to it. I was searching about it on the internet and I found an amazing site from hotfrog Site. The provided Article was about a site that provides working modded android apps. The name of the site was “Fineapkapps”. The Article was very halpful, You should read that. Click Here to reach that amazing article: Fineapkapps.

    ReplyDelete
  23. Is there an updated version and DNS list to get?

    ReplyDelete
    Replies
    1. neidhardterik has an awesome list.

      Just go to settings,
      then Import DNS rules,
      and enter (copy & paste) the following link into the domain list location box

      https://raw.githubusercontent.com/BlackJack8/iOSAdblockList/master/Hosts.txt

      Delete
  24. For updates, neidhardterik has an awesome list.

    Just go to settings,
    then Import DNS rules,
    and enter (copy & paste) the following link into the domain list location box

    https://raw.githubusercontent.com/BlackJack8/iOSAdblockList/master/Hosts.txt

    ReplyDelete
  25. Is there another updated list other than blackjack for old version of Adblock v3
    Thanks for help

    ReplyDelete
  26. How do I get Words with Friends to eliminated ads?

    ReplyDelete
    Replies
    1. If the ads are coming from the same server, then you can't. That is what sucks about these apps that require Internet and uses the same servers to be work. :(

      Delete
  27. Thanks for a great app. Can it also block ads in YouTube app?

    ReplyDelete
  28. When I typed in ip as shown in the video, it appears to be “0.0.0.0” for ipV4 and “::” for ipV6. But it is “::00” for ipV6 in the video. I don’t know what I did wrong.

    ReplyDelete
  29. KING CASINO, LLC GIVES A $100 FREE BET
    KING CASINO, LLC casinosites.one GIVES A $100 FREE BET gri-go.com to try. Visit us today and receive a www.jtmhub.com $100 오래된 토토 사이트 FREE herzamanindir.com/ BET! Sign up at our new site!

    ReplyDelete