class="nav-up">
iOS

Introduction to “content blocking” in iOS 9

17

Nov. 15

3.58 K

VIEWS

iOS 9 comes with a new feature called “content blocking”, which allow us to install apps that block trackers, advertisements and other content – cookies, images, resources, pop-ups while browsing websites on iPhone safari browser. It means that things like autoplay video, invisible tracking scripts (which hinders the privacy unknowingly) etc. can be blocked.

Why do we need them?

  • Most of the websites today are filled with so much of “extra” content beyond the information we are looking for like ‘third-party trackers’ to enable advertising, analytics and other marketing tools to show advertisements.
  • Desktop browsers can load such websites fast because of powerful resources and are generally connected to hi-speed internet like broadband or lease lines.
  • Mobile browsers on the other hand have limited resources and are generally connected to data plans like 2G, 3G services. Loading these websites on mobile browser can be troublesome, slow, bulky, unstable and annoying. It also consumes a large amount of data thus increasing data usage, battery usage and more mobile bills.

All these limitations can be overcome d with content blockers that can:

  • Stop all this extra content from been loaded so that websites can load fast and we are presented with only those information that we are actually interested in reading.
  • Stop the scripts and cookies that let sites and their advertisers identify us and follow us around the web.
  • Stop the trackers that track our information and utilize it thus solving our privacy concern to some extent.

Content blockers themselves aren’t logging what sites we visit or what’s been blocked. They just use a set of defined rules that tell the browser what should not be loaded.

How do they work?

  • Content blockers in iOS 9 are new types of app (called extensions), that are able to block incoming content before it’s loaded by the system — it provides a list of sites and scripts to the operating system for blocking. Instead of requiring the browser to process what to block as the page loads, it’s performed on a system level before the page loads which increases speed significantly.
  • We will first have to install a content-blocking extension by way of a mobile app download from the iTunes App Store.
  • But unlike normal iOS apps, these new apps cannot run just by installing them, we need to change few device settings to turn them on – “Settings” -> “Safari” -> “Content Blockers”.
  • We also have an option reload the website without content blockers, by long press on the reload button in case if we want to see the blocked contents.

Content blockers for developers

  • To create a content blocker, developers add a Content Blocker Extension template in Xcode and create a list of rules in a JSON file. The rules define what gets blocked. The rules contain triggers and actions. Triggers determine when the rules get run and actions determine what happens when they do.
  • For page elements like divisions (div), the trigger can be as simple as coming across a CSS class and the action, setting its display property to “none”. For example, if “#about-the-author” is encountered it can be made to go away. Developers can choose to target all domains, or to include or exclude specific domains. They can also choose to target all resources or to include or exclude specific resources.
  • For scripts, it can be as simple as blocking them from loading. Again, developers can choose all scripts or to include or exclude specific scripts, and to exclude first party (same scheme, domain, and port as the page itself) or third party scripts.
  • Filtering is handled by regular expression (regex). Developers can even create rules that, if the proper conditions are met, negate other rules.
  • Since developers can provide ways to change rules in the app that contains the extension, in action extensions, and in Settings, developers can notify Safari about updates and have the rules recompiled. That includes when white lists or black lists are imported or re-imported, sites are added or removed, different elements or resources are enabled or disabled, etc.

Few concerns

While mobile web users will appreciate the ability to block ads, speed up load times, save money on expensive data plans, and protect their privacy, the addition of content blockers in iOS 9 could have huge complexity for web publishers and their advertisers.

Tools that publishers routinely use to measure their visitors and communicate with them, including Google Analytics, Parsely, Chartbeat, Intercom, Optimizely and others could also be affected. Workaround for publishers could be:

  • Use ‘News’ app (available in iOS 9, where it’s not possible to block ads).
  • Use iAd network for advertising.
  • Build native apps.

While content blocking in iOS 9 is fairly new feature, our expert mobile development team has already started to implement it, please feel free to contact us for any related queries.

 

Author

Ketan Raval
Posted by Ketan Raval

Blog A directory of wonderful things

Edge Computing Technologies for a Better IoT Ecosystem

According to worldwide IoT forecasts, by the year 2020, edge computing or infrastructure will reach 18% of the total spend on IoT infrastructure. The spending pattern is based on deployment …

10 Wearables that track your Health

Every now and then we are relying oftenly on the gadgets to make our lives much easier and simpler. Wearables were most popular gadgets ever since they were envisioned. Towards …

Key factors to be considered to plan your first IoT product

The Internet of Things (IoT) is often talked about as some distant future vision. Consumers dream about connected lives, journalists talks about how IoT will change the web. It might …

Go Global with IoT based solutions – Smart SIMs

IoT is amending almost every physical object that is surrounded by us in an ecosystem of connected things. From home to parking spaces, IoT based solutions are connecting more and …

Welcome 2017 – A year to explore IoT, Big data, BI, Cultural expansion and much more

LetsNurture wishes you all a very happy new year. We hope you already have planned your new year resolutions. At LetsNurture, our employees surely have taken some innovative resolutions. We, …

Bye Bye 2016 – A year of IoT, Chatbots, Process implementation and much more

2016 was a year full of enthusiasm and excitement as there had been many achievements and memories to cherish. New technologies emerged with new challenges to zeast our capabilities a …

How IoT wearables is trending in fashion with ‘smart shirt’

IoT is a vast technology to talk or write about. Internet of things as is self-explanatory term defines the technology where the daily objects are connected to internet. From connected …

Why IoT solutions are trending in home appliances

The objects connected to the internet is termed as internet of things profoundly known as IoT. It has made its way to build any individual’s lifestyle in a better shape. …

IoT solution enables fleet tracking and much more

Ericsson predicts that by 2020, human population will grow to 7.6 billion, with almost 50 billion devices connected to the Internet. Not only the devices or smartphones but also the …

Hurdles in Large Scale Adoption of IoT Technology

As you all are aware Internet of Things or IoT lets you connect multiple devices within a network. All the connected device are either wireless transmitters or receivers of low-frequency …

How IoT is booming the Food Industry through Restaurant Application

Internet of things is a concept of connecting everyday objects to the internet, allowing them to send and receive data. This concept has opened a door to humongous opportunities in …

Physical Web – Rebranding Internet of Things

The concept of bridging the interaction between any physical object and internet is called IoT. It enables you to discover web pages associated with everyday objects and locations. The Physical …

IoT Solutions That Connects Travelers to Airports

Imagine the world where you could remotely control your home appliances and switch it on or off. A place where you can control water pumps of your farm from far …

Connected Factories : The Changing Face of Manufacturing Industry

Manufacturing is one of most complex engineering fields and bringing innovation into it makes things strenuous. The need for manufacturing organisations to be hyper-efficient while providing extreme flexibility with mass …

Smart Parking Solution – Making the Parking Im-Possible

Parking is not a problem that goes down with one particular city, its worldwide. Every metro city in every continent is struggling with rising number cars and shrinking parking area. …

Securing IoT Devices in an Enterprise

Security is an issue that is faced at every corner of life. May it be the security of your vehicle, your home, your family or you. The security at your …

Jobs that won’t Exist by Next 10 years

“Technology – a boon or a bane” This is a very old topic answered many times in many ways right from school essays, college debates. and group discussion for jobs. …

Google releases OpenThread for Home Automation

After acquiring Nest Labs Inc. in 2014, Google had made it clear to its rivals that will surely be making its mark in the Home Automation sector. It later released …

Smart Billboards – Know your Audience better

Most of us are familiar with the movie Minority Report, it showed how smart billboards (digital billboards) that display different ads depending on who is looking at them. At the …

Real Time Operating Systems that will Revolutionise the Future of IoT devices

Real Time Operating Systems have created quite a buzz in recent IoT conferences. The most primary tech gadgets of till now – Computer and Smartphones are left out as the …

CONTACT US

Have an !dea or need help with your current business?

loading...
We use cookies to give you tailored experiences on our website.
Okay