Hi Ovid,

<verbose>

If you want to intercept calls to HTML files, I think there are probably two ways of doing this.
  1. Create an ISAPI filter - I think this would have to be written in C or VB or something. I haven't done this but I know MS have a few samples you can download. - I think this would take a lot of time to develop so it might not be worth it for just one site
  2. You could create a new Script Mapping in IIS for .html files. Instead of letting IIS feed the html straight to the browser you could create a parser script (say it's called 'stripSSI.pl') and create a script mapping pointing to perl path/to/stripSSI.pl %s - you would need to play around with that path - I haven't done this before so it might need to be different. stripSSI.pl could then clean up the SSI and handle the template tags directly.


To create a script mapping in IIS [4|5], go to the website properties, click "Home Directory" Tab -> Configuration.

You might also want to think of other ways of letting the client update HTML. It would depend on what sort of changes the client would be making and how often. One option would be to let the client upload to a 'build' subfolder with a few home-grown tags, then let them run a script which checks which filed have changed, then fills in your home-grown tags.

</verbose>

$code or die
$ perldoc perldoc

In reply to Re: Tighter Security with Client Supplied SSIs by $code or die
in thread Tighter Security with Client Supplied SSIs by Ovid

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.