Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ajt (2546)

  (email not shown publicly)

UK based. Perl, XML/HTTP, SAP, Debian hacker.

  • PerlMonks: ajt []
  • Local LUG: AdamTrickett []
  • Debian Administration: ajt []
  • LinkedIn: drajt []

Journal of ajt (2546)

Friday August 06, 2004
01:25 PM

Blocking Adverts in Opera

[ #20280 ]

For a long time I've got use to the "right-click and block images from.." function in Mozilla and Firefox. Though Opera is a fine browser it doesn't offer this from the GUI. Anyhow I own a copy of Opera, and I was having an unrelated problem, and mentioned this lack of a feature to the techie, and they suggested the built-in filtering kit. There is no GUI control for it, but it's simply a case of creating a filter file, and switching it on from the master config, and lots of adverts simply disappear!

Poor IE it just don't have the features I want, you get no tabs, and poor xhtml/css support, and instead you get pop-ups, adverts galore, backdoors, and spyware...

I know I could hack my hosts file to force lots of ad servers onto my loopback too, which works quite well, but as I run a web server on my main machine, it does rather fill up the Apache error log. I've used this technique on other machines, where it's quite effective at cutting out adverts and "undesireable" content.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • you could point the hosts file to or or something similar
    • I've used in the past, but you have to configure Apache to not to listen to it, as it does by default. Plus you have to do a search and replace on any spam blocking host file you get hold of (they are usually set to I know it's easy to do, but it's an extra step to mess with.

      I use this method on any machine not running a web server, and I've done it for friends too. Overall I'd have to say it's quite effective and simple. Friends like it, as it blocks most "adult" content on their ma

      -- "It's not magic, it's work..."
  • Even better than right-click block is adblock []. It also blocks javascript and flash. It's very nifty.


    • I've tried it once on an older install of Firefox. I don't recall much about it, and when I upgraded to a newer version, I didn't re-install it.

      Looking at adblock again, I see it's actually very similar to the Opera URL filtering rules. As you can use wildcards it gives you quite a bit of flexibility and considerable power to kill exactly what you want. The Opera version is built in, though not obvious from the GUI, and only supports simple wildcards, not full RegEx.

      However you look at it, Firefox/Mozil

      -- "It's not magic, it's work..."