Recent versions of iOS have a second kind of filter that is shown every address,
on open connections too, and that a profile can switch on. It looked like the
answer, so we prototyped it that afternoon. It comes with a condition. The phone
checks each address against a compact filter held on the device, and for anything
that might match it asks a lookup server, using a scheme in which the server answers
without learning what was asked. There is no mode without the server. For one phone
built from Xcode, Apple's example server on a Mac on the same network will do. For
anyone else it means hosted servers and Apple's approval, which other developers
report takes weeks.
James went out. When he came back, Safari would not open anything at all. The
prototype had been set to fail closed, which means that when a lookup cannot be
made the page is refused, and the lookup server was a laptop that the phone could
no longer reach. The app's own status row said "Problem", twice, for two reasons
that both turned out to be nothing: the system reports saving an unchanged setting
as an error, and reports its state as invalid until the state next changes. The
phone was restarted twice before the filter would find its own extension again,
because installing a new build while the filter is running loses it.
Once it ran, it did what the network filter cannot, and the test was plain:
requests to a listed address were refused on a connection that was already open.
Then two limits. The system looked up only the exact address until it was told to
try each level of the path, so the entry for Shorts did not cover a particular
Short. And one Short still played. Tapping a Short on YouTube's home page loads
that video through the same request every ordinary video uses, which cannot be
listed without blocking YouTube; the requests that build the feed behind it were
refused, so there was nothing to swipe to. James's report was that it stalled and
nothing would scroll, which is very nearly the product.
The lock test settled it. A profile can switch this filter on, but the app can
still switch it off, and it needs servers we would have to run for strangers. The
prototype and its notes are on a branch of the repository, and it is not in the
app.