Menu

#261 blocking Gif's

3.0.x
closed
nobody
blocking (193)
5
2003-11-11
2003-09-24
prakash
No

hii,
i have privoxy-3.0.2 installed on REdhat
linux-9.0. All i want is to block all gif's by default.
this i have done in default.action using the script
{+block}
/.*.gif (i hope this is correct)

Now i want to allow gif's based on the url's. like
allow all gif's to all sites . else allow gif's to a
partucular site/sites. for eg: allow gif' s only to
yahoo.com , rediff.com and so on. this i want the
script to be placed in user.action or my own new filter
file.
i to allow gif's to all sites is working with the same
script as above but with the tag {-block} . i have
written some scripts to allow gif's for particular
sites which is not working. can anybody help me plz

thanx
shiv

Discussion

  • Andreas Oesterhelt

    Logged In: YES
    user_id=78811

    Hi,

    what you can do in user action is this:

    # Block all gifs:
    #
    {+block}
    /.*\.gif

    # Now make exceptions from the above
    # rule (order DOES matter!)
    #
    {-block}
    .yahoo.com
    .rediff.com

    Note, however, that this will allow ALL gifs from
    yahoo and rediff, including those which match
    the banner blocking rules of default.action

    Also, don't try this in the filter file as it has a
    completely different syntax.

    HTH,
    Andreas

     
  • Andreas Oesterhelt

    • milestone: --> 3.0.x
    • status: open --> pending
     
  • prakash

    prakash - 2003-09-25
    • status: pending --> open
     
  • prakash

    prakash - 2003-09-25

    Logged In: YES
    user_id=873336

    Ya i can do like this but the prob is that all the sites i
    have blocked previously will be unblocked . what i mean is
    just above '{+block} /.*.gif' line i have a statement like
    this ' {-block -filter{banners-by-size}
    -filter{banners-by-link}} \
    .*. '
    which by defaults blocks all banners/ads.

    so now the point is i want to block all ads/banners to
    all/specific sites but allow gifs to all/specific sites. how
    to acheive this.

    shiv

     
  • Andreas Oesterhelt

    Logged In: YES
    user_id=78811

    Excuse me, but I don't understand what you're
    trying to do. Could you explain where you
    want the gifs blocked and where you want
    them untouched?

     
  • Andreas Oesterhelt

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB