Your problem is akin to the following:

You are trying to prevent the production of cheese by controlling the flow of milk to the producer. However, you have no control over the flow of cows to the producer, nor do you have knowlege/control over whether the producer has cows to begin with. And so you wonder why he can still make cheese....

Javascript is a programming language executed at the client. It has facilities for manipulating strings and jamming them into URLs. Consequently, there is really NO effective way to guarantee that a client can't be passed a piece of javascript that will generate a URL which will point to a server other than your proxy -- in fact, since http://(long) is valid in many browsers, it is an almost trivial exercise to construct such a workaround. Unless you can control their physical access to the internet (putting the client's IP on a private network, for instance) there is no way you can force a client to use a proxy.

You could simply have your proxy strip out ALL javascript, but that would have potentially undesirable side effects. And, it would still be no guarantee that the client couldn't be routed around your proxy by a URL generated in, say, a Java applet, or an ActiveX control, or RealPlayer, or one of countless other ways.

Spud Zeppelin * spud@spudzeppelin.com


In reply to Re: Path Fun by spudzeppelin
in thread Path Fun by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.