[Privoxy-users] Question on Blocking Frames Using the Frame Name?

Lee ler762 at gmail.com
Mon Mar 27 17:55:55 UTC 2017


Just out of curiosity, how did you block it using Proxomitron?

With Privoxy, first you need to create a filter in user.filter

I didn't like certain size iframes, so I added this bit:

#################################################################################
#
# block-iframes-by-size: remove 728x90 and 768x90 iframes
#
#################################################################################
FILTER: block-iframes-by-size

s@<iframe\s+[^>]*width\s*[=:]\s*"?7[26]8"?;?\s+height\s*[=:]\s*"?90"?;?\s+.*</iframe>@\
  <!-- privoxy removed 768x90 iframe -->@gisU



Then edit user.action to say which sites should have the filter applied - eg

{ +filter{block-iframes-by-size} }
.onlineshoppingsite.com/
.myfavoritenewspaper.net/
.watchlocal.tv/


Regards,
Lee



On 3/27/17, Kenneth Washington <kwashingtonlist at gmail.com> wrote:
> Hello,
>
> I just started using Privoxy v3.0.26 recently and have a question?
>
> I wish to block a frame found in a frameset based on the actual name
> assigned to it.
>
> Example frame names I wish to block:
> main
> f_body
> adverts2
>
> Now I don't want the above filter to be applied to every single site I
> visit, only specific URLs.
>
> Example URLs:
> Oonlineshoppingsite.com
> myfavoritenewspaper.net
> watchlocal.tv
>
> Is there an action available in the current version of Privoxy for
> doing the above?
>
> If so, what are the steps needed for me to make this happen?
>
> If no such action already exist, can someone please tell me what I
> need to do to make the above possible?
>
> I was using Proxomitron for quite a while (Close to 12 years) and was
> able to do the above with a simple web filter and blockfile
> assignment. Privoxy doesn't seem to work on the same principles
> though.
>
> I'm able to learn a whole lot better by referring to actual examples
> of something I want to get done.
>
> Yes, I've reviewed the online manual but things are still a bit
> unclear to me. Hopefully having someone assist me with doing this
> little assignment will lighten the learning curve sort to speak.
>
> If there is an online resource available providing lessons and
> tutorials for learning Privoxy please do share the links.
>
> Thanks for any assistance.
>
> -Kenny
> _______________________________________________
> Privoxy-users mailing list
> Privoxy-users at lists.privoxy.org
> https://lists.privoxy.org/mailman/listinfo/privoxy-users
>


More information about the Privoxy-users mailing list