tag:old-support.getadblock.com,2013-08-06:/discussions/questions/3078-nothing-blocked-when-page-is-localAdBlock: Discussion 2018-10-19T09:06:37Ztag:old-support.getadblock.com,2013-08-06:Comment/352947112014-11-16T08:57:53Z2014-11-16T08:57:53ZNothing blocked when page is local?<div><p>Thanks for reporting this!</p>
<p>I've just asked one of our developers about this, but if this
isn't expected behaviour, then thanks for reporting the bug!</p>
<p>Our code is open-source at <a href=
"http://code.getadblock.com">http://code.getadblock.com</a> and if
you have knowledge of HTML, CSS and JavaScript, then we'd love to
see a patch sent as an attachment!</p></div>Kierantag:old-support.getadblock.com,2013-08-06:Comment/352947112014-11-16T16:12:38Z2014-11-16T16:12:38ZNothing blocked when page is local?<div><p>Ah... I had a look and found this...</p>
<pre>
<code> // Returns true if the url cannot be blocked
page_is_unblockable = function(url) {
if (!url) { // Safari empty/bookmarks/top sites page
return true;
} else {
var scheme = parseUri(url).protocol;
return (scheme !== 'http:' && scheme !== 'https:' && scheme !== 'feed:');
}
}</code>
</pre>
<p>I think this controls whether things from a page are blocked,
and certainly controls the icon etc. So, file: wouldn't be
blocked... I can't see any reason why it shouldn't be, though, so
maybe it should just be added to that function...</p>
<p>But I'm also wondering why the "source page" matters at all. If
something is in a list to be blocked, shouldn't it be blocked
whenever an attempt is made to access it, wherever that attempt
came from? Unless the source was whitelisted or whatever, but that
still doesn't rely on protocol... Really, what other protocols are
there, which you don't want blocked?</p></div>Mootag:old-support.getadblock.com,2013-08-06:Comment/352947112014-11-17T15:49:06Z2014-11-17T15:49:06ZNothing blocked when page is local?<div><p>Yes, you are correct. Only typically HTTP / HTTPS traffic is
blocked by AdBlock, and yes this is by design.</p>
<p>Resources loaded from the local file system using the
'<a>file:///&#39</a>; URL scheme are not blocked because they
are local, the owner of the resource can control via other means
which content is loaded or not. Also, AdBlock is seen as way to
save bandwidth, and loading resources from a local URL wouldn't
save any bandwidth.</p></div>Brenttag:old-support.getadblock.com,2013-08-06:Comment/352947112014-11-17T19:06:10Z2014-11-17T19:06:12ZNothing blocked when page is local?<div><p>I'm not talking about blocking URLs that are <em>on</em> the
local filesystem... It's that resources on normal (http) URLs
aren't blocked either, when the "main page" isn't on
http/https/feed.</p></div>Moo