Join us at TNW Conference 2022 for insights into the future of tech →

The heart of tech

This article was published on September 16, 2015

New tutorial shows you how to create your own content blocker for iOS 9 (in 10 minutes)

New tutorial shows you how to create your own content blocker for iOS 9 (in 10 minutes)
Nate Swanner
Story by

Nate Swanner

Former Reporter, TNW

TNW's former West Coast writer in the PNW (Portland, Oregon). Nate loves amplifying developers, and codes in Swift when he's not writing. If TNW's former West Coast writer in the PNW (Portland, Oregon). Nate loves amplifying developers, and codes in Swift when he's not writing. If you need to get in touch, Twitter is your best bet.

One of the coolest parts of iOS 9 is content blocking, which strips much of the ads and tracking code from Safari. If you’re iffy about downloading one from the App Store, try making your own!

Paul Hudson, who runs Hacking with Swift, has published the timely ‘Safari Content Blocking in iOS 9: a tutorial by example.’ In it, he shows you how to create your own add blocker in Xcode.

While a level of coding know-how is preferable, you could go without; Paul is pretty thorough and explanatory. He says you could get through it in 10 minutes, but novices will need much more time with the content than that.

There are also plenty of ad blockers available in the App Store, but what’s the fun in that? Write your own and really be in control of your destiny.

Fun side-note: the tutorial doesn’t even use Swift — it’s all JSON.

Safari Content Blocking in iOS 9: a tutorial by example [Hacking with Swift]

Also tagged with