Menu

#1188 How to Block All Images

3.1.x
closed
5
2009-09-06
2009-07-31
Daniel M
No

This is not a bug report, sorry, I couldn't find a better place to ask this, so here goes:
I am trying to find a way to block ALL images from being loaded. So in privoxy's action file I tried to create a block rule that looked like this: "*.PNG" to block all PNG images. But that didn't work. I know how to block only one image with an absolute path no problem, but am not able to block all images. Could anyone please help me? Thanks a bunch!

Discussion

  • Fabian Keil

    Fabian Keil - 2009-08-22

    A URL pattern that blocks all URLs ending with png would be:
    /.*\.png

    However there are of course other endings commonly used for images and
    additionally you should probably block based on the Content-Type header from
    the server and based on the Accept header from the client.

    Blocking 100% of the image requests isn't possible with Privoxy, unless you
    implement a white-list of URLs known not be images. This isn't a realistic
    approach, though, as it doesn't scale.

     
  • Fabian Keil

    Fabian Keil - 2009-08-22
    • assigned_to: nobody --> fabiankeil
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.