Via replacement plan

2016-06-21

Security considerations

Usability considerations

Potential design

  1. Request arrives
  2. DNS check
  3. Rewrite request
  4. Proxy to upstream
  5. Check against content-type handlers: if unknown pass straight through
    1. PDF – render out PDF viewer HTML (templated).
    2. HTML – inject small tag payload at appropriate point
  6. Profit?

Rewrite approach

  1. Inject a <base> tag with an href linking to the original URL. This will hopefully ensure that external resources load correctly (and directly from the original site rather than through via), and allow in-page ajax calls to work.

  2. Inject a script that will progressively enhance the via user experience by, for example:

  3. ???