Or if you don't like this, feel free to destroy it.
This is a modified version of a guide found here
And also a modified HOSTS file from here
One of Opera's many features is a Kiosk mode.
One part of this mode is a URL filter which can accept wildcard entries. This is a perfect for blocking a lot of adservers. More effective than editing a HOSTS file, due to the wildcard entries.
1) First, you will need at least version 6.02 of Opera (currently I am using this in version 7.5 Beta 1)
2) Make sure Opera is closed
3) Inside the program folder (in my case, "c:\program files\Opera75\") make a blank file called "Filter.ini" (full folder path: "C:\Program Files\Opera75\filter.ini")
4) The filter.ini file is made up of three sections: a [prefs] section, an [include] section, and an [exclude] section. Prefs is preferences, include refer to URL's that are allowed to be accessed, exclude refer to URL's that are forbidden. Now the fun begins.
5) Inside your "filter.ini" insert the following:
Snipped : here
6) Save and close this file.
7) Find your "Opera6.ini" file. It should be under the profile folder (in some cases, "c:\program files\opera75\profile". In other cases, "c:\documents and settings\******\Application Data\Opera\Opera75\profile", where ****** is your user name)
8) Open "Opera6.ini", and search for "[Adv User Prefs]". Under it add the following line:
URL Filter File=filter.ini
9) Save and close.
10) Now you can open Opera, and a lot of ads should be gone.
If you encounter any problems (most common is a page not opening, just instantly loading to a blank page), then compare the URL of the page to any entries under filter.ini. Remember that after editing filter.ini, you will need to close and reopen Opera.
A small tip, for easy editing of filter.ini: Right click filter.ini, and select "Send To > Desktop (Create Shortcut)". Now you have a desktop icon for easy editing of Filter.ini.
If you have any problems with this, feel free to to ask for help
Edited by Mr magoo, 25 April 2004 - 17:10.