title: How to block external resources to load on a WKWebView?
body: <p>I have an app that loads a webpage, but prevents the downloads of images, fonts, javascripts, etc. For this I implemented an <code>NSURLProtocol</code> subclass which works very well with UIWebView.</p>
  
  <p>However I'm migrating to <code>WKWebview</code>, and realise that my crafted <code>NSURLProtocol</code> class no longer works to filter out these resources.</p>
  
  <p>Have anyone an insight as to how to achive the filtering/blocking?</p>
  
  <p>In case you're wondering how am I doing the migration, I started with this post: <a href="http://floatlearning.com/2014/12/uiwebview-wkwebview-and-tying-them-together-using-swift/" rel="noreferrer">http://floatlearning.com/2014/12/uiwebview-wkwebview-and-tying-them-together-using-swift/</a></p>