[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [PATCH] Allow/Deny some urls to be fetch in KHTMLPart
From:       Waldo Bastian <bastian () kde ! org>
Date:       2004-12-09 17:46:16
Message-ID: 200412091846.20225.bastian () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 09 December 2004 15:31, Luc Saillard wrote:
> Hi,
>
>  I want to be able to block some urls in Konqueror (or any application that
> use KHTML) like adblock do for Mozilla suite.

You could extent KApplication::authorizeURLAction with some additional 
filtering logic. The current rules-based filtering doesn't work nicely if you 
have a large list of hosts that you want to block, but you could add some 
optional hook in there.

The basic idea is:
	if ((destClass = ":internet") &&
	   (destURL.host() == "some.site.to.block.com"))
		return false;

Cheers,
Waldo
-- 
bastian@kde.org   |   Free Novell Linux Desktop 9 Evaluation Download
bastian@suse.com  |   http://www.novell.com/products/desktop/eval.html

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic