********************************************************************** Web Response Modifier Web Filter Sample ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER. USE AND REDISTRIBUTION OF THIS CODE, WITH OR WITHOUT MODIFICATION, IS HEREBY PERMITTED. ***************************************************************************** The WebResponseModifier Web filter sample demonstrates changing the content of the response that is sent to the client. The Web filter adds the string "Brought to you by an ISA Web Filter" to every response. ------------------------ Compilation Instructions ------------------------ - You must use Visual Studio .NET. (Visual C++ 6.0 is NOT supported). - The sample must be located in the original location where it was installed by the SDK installer because the .vcproj file includes relative references to files in the SDK Inc folder. - Open the WebResponseModifier.sln file and compile the whole solution. ------------------------- Installation Instructions ------------------------- To install the Web filter: 1. Copy WebResponseModifier.dll to a computer running ISA Server 2004. We recommend that you copy it to the ISA Server installation folder. 2. At a command-line prompt, type the following line and then press ENTER: regsvr32 WebResponseModifier.dll 3. Open ISA Server Management, expand the Configuration node, and click Add-ins. In the details pane, click the Web Filters tab and verify that the WebResponseModifier Web filter is listed. ------------------ Testing the filter ------------------ To test the WebResponseModifier Web filter: 1. Configure an access rule that allows HTTP traffic to go through the ISA Server computer. To do this, open ISA Server Management. In the console tree, click Firewall Policy. On the Tasks tab in the task pane, click Create New Access Rule to launch the New Access Rule wizard. Follow the wizard instructions. 2. Send an HTTP request (that is allowed by the rule) to your test Web server. In the Web page returned, the string "Brought to you by an ISA Web Filter" should appear on the first line followed by the original Web page. ------------------------ Unregistering the filter ------------------------ At a command-line prompt, type the following line and then press ENTER: regsvr32 /u WebResponseModifier.dll