The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

URL filters ignored on local pages

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

6. December 2011, 03:27:36

mochikun

Posts: 940

URL filters ignored on local pages

I wonder if it's a well known bug, a feature or just my Opera installation:
URL filters (urlfilter.ini) are ignored on local pages and on pages linked from local pages.

Case 1
When I open HTML files from my local HD, the context menu item "Block Content..." is greyed out. Normally these are pages I created and therefore I regarded this behaviour as an intentional feature. After all, why would I want to block content on my own pages? But what if I want to test my content filter?

Case 2
When I save a webpage as "HTML file with images", the page becomes a local page. URL filters don't work anymore. That's strange. Opening the page loads all content that would have been filtered if the page would have been loaded from the server. That's not what I expect.

Case 3
I have created my own local HTML file with links to my favourite sites. This page is my homepage. All links are opened in the current tab by default. The problem: When I open a link, the linked page is not filtered. It appears that the linked page somehow inherits the "unblockable" status from my homepage, although "Block Content..." is enabled and when clicked applies the filters. The URL filter also works correctly when the link is opened in a new or background tab. Also a Reload remedies the problem. But this doesn't help me: In my current setup all links are opened unfiltered.

Example for case 3:
Create a very simple HTML page and save locally:
<html>
<a href="http://www.hyperdia.com/">Hyperdia</a>
</html>

Now make sure that urlfilter.ini contains
[exclude]
*/banner/*

When I open the link in the current tab, the Hyperdia site shows several banners. When I reload, the banners are gone.




14. December 2011, 02:27:20

mochikun

Posts: 940

I've made more tests and I'm convinced that this is a bug. Can anybody reproduce it?

Problem:
Content is not blocked if page loads after a local page, no matter how the page is opened (via bookmark, speed dial, link on local page etc.). Just the fact that the previous page of a given tab was a local page prevents content blocking in the following page.

Forums » Opera for Windows/Mac/Linux » Opera browser