Menu
NL

AdGuard v4.5.1 for iOS: dealing with unforeseen rule limit on iOS 17

This update comes with a story, since we found an unexpected iOS 17 bug that essentially limits the number of content-blocking rules, so you already know there’s no way we aren’t telling you all about it. Apart from the bug workaround, this release also contains some nice improvements and fixes beneficial to the app's performance and stability.

Apple, you said we could use up to 150k content-blocking rules in Safari, what happened?

The issue

So, it all started with us trying to find a solution to an issue on iOS 17 where filters would just update endlessly without actually updating. Yeah, you heard that right — tapping 🔄 icon in the upper right corner of the AdGuard's main screen was triggering an endless spinning animation but nothing happened. In some cases, however, this sight would come to an end in the form of filter update errors.

The cause

Initially, we were trying to find issues in our own app's code (as any responsible developer would). But the more we tried, the more we started to pay attention to the fact that the issue occurred only on the newest iOS, which is supposed to be the most polished and optimized. This detail and increasing user feedback lead us to realize that the root of the problem lies in the updated iOS.

The next realization was that filters would still update successfully depending on the filters enabled (or, rather, not enabled) by the user, which in turn helped us find out that loading rules into Safari sometimes hits a memory limit — something we never had a problem with before.

Apple provides developers with the ability to implement Safari Content Blocker functionality in their apps, which allows them to offer content-blocking features to users. As you can probably guess, this is an indispensable tool for ad-blocking apps on iOS, because it gives a way to apply filtering rules to pages accessed in Safari. Currently, according to the Safari Content Blocking API documentation, it allows for up to 150k rules in one content blocker (and one app can have several content blockers).

The contradiction

All in all, we were faced with a surprising new reality where using our standard Safari content blockers with 150k filtering rules was all of sudden causing a crash on iOS 17. It turned out that Safari wouldn't accept files over a certain size anymore — even content blockers with 40-60k rules (which is 3 times below the 150k limit) would sometimes crash, depending on the rules they contain.

This leads to a simple question to Apple: how come a 40k rule content blocker crashes when Safari officially allows 150k rules?

Since it’s an obvious bug in iOS 17, we already reported it on Apple’s forum. We’d appreciate it if you could upvote it there by pressing 'Me too'. Also, here’s the ticket ID in Apple’s Feedback Assistant: FB13282146.

The workaround

It took us over a week to figure out a temporary measure: we restricted the size of our JSON files and optimized main filters so that they can squeeze into this new ‘size requirement’. If a content blocker is still a little too big for iOS’s liking (the final size depends on how many and what filters are enabled by the user), we automatically cut its size so that at least part of the rules that meet the size requirement gets applied in Safari.

So while everything should work fine for most users at the moment, we are very much looking forward to Apple fixing this bug ASAP.

SafariConverterLib, Scriptlets and TSUrlFilter updated

Thanks for letting us blow off some steam above, now we can tell you about nicer things in v4.5.1. For instance, we updated SafariConverterLib, Scriptlets, and TSUrlFilter dependencies. The update of these three components and their interconnection helps maintain high filtering quality, i.e. efficient and up-to-date performance of blocking rules.

SafariConverterLib converts AdGuard filtering rules into Safari content blocking rules, so it basically makes possible to use the full power of our filters in AdGuard for iOS. Scriptlets and TSUrlFilter are also nothing short of important, since they help implement the Advanced blocking feature in AdGuard for iOS.

DnsLibs reworked

In DnsLibs (our DNS filtering engine) v2.3 update we have done some serious rework and adjustments which significantly improved AdGuard's DNS-over-HTTP/3 performance and stability.

Also, some other things were fixed, one of them being the issue where AdGuard wouldn’t open on iOS 13.x.


We hope you'll enjoy improved AdGuard for iOS, and if you have any thoughts about this update, please don't hesitate to leave a comment below or reach out to us on social media.
The full v4.5.1 changelog can be found on Github.
Any feedback is also very welcome in Github issues.

Vond je dit bericht leuk?
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard voor Windows

AdGuard voor Windows is meer dan een advertentieblokkeerder. Het is een multifunctioneel hulpmiddel dat advertenties blokkeert, de toegang tot gevaarlijke sites regelt, het laden van pagina's versnelt en kinderen beschermt tegen ongepaste inhoud.
Door het programma te downloaden accepteer je de licentievoorwaarden
Meer lezen
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard voor Mac

AdGuard voor Mac is een unieke advertentieblokkeerder die is ontworpen met macOS in gedachten. Het beschermt je niet alleen tegen vervelende advertenties in browsers en apps, maar beschermt je ook tegen volgen, phishing en fraude.
Door het programma te downloaden accepteer je de licentievoorwaarden
Meer lezen
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard voor Android

AdGuard voor Android is een perfecte oplossing voor Android-apparaten. In tegenstelling tot de meeste andere advertentieblokkeerders, vereist AdGuard geen root-toegang en biedt het een breed scala aan app-beheeropties.
Door het programma te downloaden accepteer je de licentievoorwaarden
Meer lezen
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard voor iOS

De beste iOS-advertentieblokkeerder voor iPhone en iPad. AdGuard elimineert alle soorten advertenties in Safari, beschermt jouw privacy en versnelt het laden van pagina's. AdGuard voor iOS advertentieblokkeringstechnologie zorgt voor filtering van de hoogste kwaliteit en stelt je in staat meerdere filters tegelijkertijd te gebruiken
Door het programma te downloaden accepteer je de licentievoorwaarden
Meer lezen
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard VPN

74 locaties wereldwijd

Toegang tot alle inhoud

Sterke versleuteling

Geen logboekregistratie

Snelste verbinding

24/7 ondersteuning

Gratis proberen
Door het programma te downloaden accepteer je de licentievoorwaarden
Meer lezen
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard Content Blocker

AdGuard Content Blocker verwijdert alle soorten advertenties in mobiele browsers die de content blocker technologie ondersteunen, namelijk Samsung Internet en Yandex.Browser. Hoewel het beperkter is dan AdGuard voor Android, is het gratis, eenvoudig te installeren en biedt het nog steeds een hoge kwaliteit voor het blokkeren van advertenties.
Door het programma te downloaden accepteer je de licentievoorwaarden
Meer lezen
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard Browserextensie

AdGuard is de snelste en lichtste advertentieblokkering uitbreiding die alle soorten advertenties op alle webpagina's effectief blokkeert! Kies AdGuard voor uw browser om advertentievrij, snel en veilig te surfen.
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard Assistant

Een bijbehorende browserextensie voor AdGuard desktop apps. Het biedt in de browser toegang tot functies zoals het blokkeren van aangepaste elementen, het op een witte lijst plaatsen van een website of het verzenden van een rapport.
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard DNS

AdGuard DNS is een alternatieve oplossing voor advertentie-blokkade, privacybescherming en ouderlijk toezicht. Het is eenvoudig in te stellen en gratis te gebruiken, biedt een minimum aan optimale beveiliging tegen online advertenties, trackers en phishing, ongeacht welk platform en welk apparaat u gebruikt.
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard Home

AdGuard Home is een netwerkbrede software voor het blokkeren van advertenties en tracking. Nadat u het hebt ingesteld, bestrijkt het alle apparaten in uw huis, en u hebt daarvoor geen client-side software nodig. Met de opkomst van Internet-Of-Things en aangesloten apparaten wordt het steeds belangrijker om uw hele netwerk te kunnen beheren.
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard Pro voor iOS

AdGuard Pro heeft veel te bieden bovenop de ad blocking functies in Safari die al bekend zijn bij de gebruikers van de standaard versie. Door te voorzien in toegang tot standaard DNS instellingen kun je advertenties blokkeren, je kinderen beschermen tegen ongewenste websites voor volwassenen en je persoonlijke data beschermen tegen diefstal.
Door het programma te downloaden accepteer je de licentievoorwaarden
Meer lezen
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard voor Safari

Extensies voor het blokken van advertenties hebben het moeilijk sinds apple iedereen geforceerd heeft om de nieuwe SDK te gebruiken. De AdGuard extensie heeft de intentie om de hoge kwaliteit advertenties niet te blokken en terug te brengen naar Safari.
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard Temp Mail

Een gratis tijdelijke e-mailadresgenerator die je anoniem houdt en jouw privacy beschermt. Geen spam in je hoofdinbox!
18.489 18489 gebruikersbeoordelingen
Uitstekend!

AdGuard voor Android TV

AdGuard voor Android TV is de enige app die advertenties blokkeert, jouw privacy bewaakt en fungeert als firewall voor je Smart TV. Ontvang waarschuwingen over webbedreigingen, gebruik veilige DNS en profiteer van gecodeerd verkeer. Ontspan en duik in je favoriete programma's met eersteklas beveiliging en zonder advertenties!
Downloaden AdGuard Klik op het door de pijl aangegeven bestand om AdGuard te installeren. Selecteer "Open" en klik op "OK" - wacht even tot het bestand gedownload is. Sleep dan in het geopende venster het AdGuard icoontje naar de "Applications" map. Dank u dat u voor AdGuard gekozen heeft. Selecteer "Open" en klik op "OK" - wacht even tot het bestand gedownload is. Klik dan in het geopende venster op "Installeren". Dank u dat u voor AdGuard gekozen heeft.
AdGuard op je mobiele apparaat installeren