> X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1)
> Gecko/20090624 Firefox/3.5,gzip(gfe),gzip(gfe)
Write yourself a proxy.pac (proxy auto-config) script to catch the
unwanted URLs and point Firefox to a non-existent proxy for them.
Put the proxy.pac file somewhere on your hard drive. In Firefox for
Linux, go to "Edit � Preferences � Advanced � Network � Settings"
and enter the file:/// URL to the proxy.pac file in the box labelled
"Automatic proxy configuration URL".
More information: http://en.wikipedia.org/wiki/Proxy_auto-config
--
Regards
Ralph
This is a step in the right direction and with some extra plumbing I
think I could get it to do what I want. To be more specific I would
basically like a server with scripting capabilities that sits between
firefox and the target server I'm connecting to with firefox. In terms
of diagrams: firefox<--->programmable proxy<--->server. I not only
want to drop requests but I want to also modify the response so that
firefox and the site I'm currently on think the request was successful.
1. If a "successful" response is sufficient by itself (you don't need
to return different content for different intercepted URLs), then
you could use a proxy.pac script to point the unwanted URLs to a
simple local proxy which returrns a (say) 1x1 transparent GIF image
to any request.
2. If not, maybe one of these could be useful
BFilter ........ http://bfilter.sourceforge.net/
Privoxy ........ http://www.privoxy.org/
Proxomitron .... http://www.sankey.ws/proxomitron.html
--
Regards
Ralph
Privoxy did the trick, thanks.
Privoxy did the trick, thanks.
Privoxy did the trick, thanks.