By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
There's nothing built into IIS to provide this. So, you'll need to either write or buy an application. The best way to do this would be to create an ISAPI filter, because ISAPI filters have the capability to modify requests and responses without necessarily interfering with the normal file processing. Here's Microsoft's information on creating custom ISAPI filters:
Writing ISAPI filters is hard, though, even for experienced developers. An easier approach would be to create a Perl script that was capable of reading an HTML file, replacing the "<body>" tag with "<body>your_html". This could be a very short script; just a few lines. Then, in IIS extension mapping, map all common HTML file extensions (.htm, .html) to your Perl script. IIS will call the Perl script, pass the path to the requested file as an argument, and send the Perl output back to the Web browser.
I wish I could point you to a download of an existing tool that would do this for you, but I can't find one.
Dig Deeper on Windows Operating System Management
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.