[Rabbit-dev] ad blocking

Luis Soltero lsoltero at globalmarinenet.com
Sun Dec 26 21:38:35 CET 2010


Hi Robo,

Thank you very much for looking at this.

Please see comments below.

On 12/26/10 11:25 AM, Robert Olofsson wrote:
> On Tue, 14 Dec 2010 14:58:13 -0500
> Luis Soltero <lsoltero at globalmarinenet.com> wrote:
>
>> The idea is to first check the url against a the tables...If there is a hit then you execute the Block/NoAd.Gif action. 
>> If there is no hit then you fall through to the regex evaluation as you do now.
> Ok, I have made a first attempt at blocking based on sql lookup for the 
> hostname. (I am not fully clear if you only want the hostname or if you
> want to use more of the url).
I think hostname will be fine.  Most lists providers provide host names. If a site is bad then the whole site is bad. So
blocking the host make sense. Its also a lot simpler than trying to do regex matches for each url. 

Having said that the current regex matching scheme should remain since that gives the implementor the option of host
table blocking or regex.
> This far it is only blocking requests, there is no ad-filtering going on.
OK. I presume that adding ad-filtering will be a simple thing once host blocking is working.  Ad blocking is important
and is really what we are after and is what started this whole discussion. 
> The changes this far are in a way quite big.
> In order to ease database handling in different parts I have moved to 
> using DataSources that can be configured in rabbit.conf, so if you want
> to try it you have to check the changes I have mad in rabbit.conf.
> This change also affects the SQLAuthenticator, so check it's configuration
> as well.
Yes. I appreciate that. When looking at the code it looked like the current setup required quite a bit of overhead since
the connection was established and then closed for every lookup  Having makes a lot more sense.  I will take a look at
the data source setup and then comment once experimented with it.
> Now I really feel like I should fix the class loading so that database
> drivers can used more easily. But that will have to wait a day or two.
OK.
> Very, very lightly tested, but I would be happy if anyone else could
> take a look and see how it looks this far, but note that it is likely
> to crash and burn.
I will take a look at it tonight if I can..
> Get the latest source from git:
> git clone http://www.khelekore.org/rabbit/rabbit.git
> (or just "git pull" if you already have a clone).
I will make a clone.

> /robo
>

Thanks again...

More soon.


-- 


Luis Soltero, Ph.D., MCS
Director of Software Development, CTO
Global Marine Networks, LLC
StarPilot, LLC
Tel: 865-379-8723
Fax: 865-681-5017
E-Mail: lsoltero at globalmarinenet.net
Web: http://www.globalmarinenet.net
Web: http://www.starpilotllc.com





More information about the Rabbit-dev mailing list