Micha <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] (Andrew M. Bishop):
> > > > 1) The server sends HTML including Javascript.
> > > > > 2) WWWOFFLE is here and hides any flash animations but leaves
> > > > >    Javascript unchanged (unless you set disable-script=yes).
> > > > > 3) The browser runs the Javascript which writes out some extra HTML
> > > > >    into the page.
> > > > > 4) The browser displays the modified HTML which includes the flash
> > > > >    animation object tags that the Javascript wrote.
> > > > > 5) The browser gets the flash animation and displays it.
> > > But where is wwwoffle at step 5 ? This  kind of requests certainly
> > > should pass a proxy, too ?
> 
> > In step 5 the requests will go through WWWOFFLE, but it does not mean
> > that WWWOFFLE will be able to detect that they are flash.  If the file
> > has the normal .swf filename extension then you can block it using the
> > DontGet section of the configuration file.  The disable-flash option
> > in the ModifyHTML section of the configuration file cannot be used to
> > block this type of flash.
> 
> I tried to block swf by both dontcache and dontget.conf here:
> < *://*/*.swf>  replacement = /local/dontget/replacement-swf.gif
> ...and it was not suficient. That's why i wrote to the list.
> 
> So this is what i suspected: js loads them as generic database files
> (only by ID names).

The Javascript can only load the flash by URL.  There must be a
filename for them, but it might not be *.swf.

> I assume browser detect the downloaded files mime-type, to activate
> the plugin.
> There could be a browser option to selective block swf ... anybody
> knows a browser who can do this ?
> (Probably i can disable the mime-type. But then i have no selectiviness.)
> 
> Can't wwwoffle detect the mime-type the same way as the browser, and
> filter it throgh dontget and dontcache ?

This decision that WWWOFFLE makes on whether to get a URL or not is
made based only on the URL, not based on the information that comes
back from the server.  It would be possible to use the mime-type for
blocking, but it is complicated because you would need to make the
request and get the header back before deciding if you want to keep
the file.  For very short files you might get all of the file back
before you decide that you don't want it.  You cannot ask the server
to send the HTTP headers and then wait for confirmation before sending
the body.

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             [EMAIL PROTECTED]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html

Reply via email to