David
Wed Feb 22 02:41:09 CST 2006
Search my blog for sample code. Also search my blog for info clarify ISAPI
Extension, ISAPI Filter, IHttpModule, and IHttpHandler and how they differ
and relate...
Clarifying the terminology...
IHttpModule only applies to content handled by aspnet_isapi.dll
- You can *-scriptmap aspnet_isapi.dll to apply it to all URL extensions
- Prior to IIS6 this only works for static file types (images, pdf, word)
but not dynamic file types (ASP, PHP, Perl pages)
- IIS6 with ASP.Net 2.0 allow aspnet_isapi.dll to filter and apply
IHttpModule transformations to a request but also hand requests back to IIS
for actual processing
ISAPI Filter filters requests in the fashion that you want by default and
can perform authentication on such requests, but you must write it in C/C++
(or Delphi). You cannot write ISAPI Filter with .Net nor Java.
Can you point me to the URL that says that the source code to URLScan was
supposed to be included in a download. Microsoft publishes plenty of source
code samples for ISAPI Extension/Filter for free in the IIS Platform SDK.
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/default.htm
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"John Wycoff" <John Wycoff@discussions.microsoft.com> wrote in message
news:A8350198-44F1-4BAD-A518-E5D2E408DE09@microsoft.com...
>I am trying to create an ISAPI filter using VB.NET. (In IIS, right click a
> website, click properties, click the "ISAPI Filters Tab).
>
> Maybe I am barking up the wrong tree but this is what I want to do.
>
> I want to filter ALL requests to a website (including images, pdf, word
> docs, EVERYTHING) and then perform authintication on it.
>
> From what I have found, IHTTPModule is the way I want to go. I do not want
> to create an ISAPI Extension because I do not want to map extensions to
> the
> aspnet_isapi.dll because I do not know what extensions might exist.
>
> I have found a few example of the IHTTPModule but none tell me everything
> that I need to know like What project to use (Web Application, Web
> Service,
> etc...)
>
> If someone could point me to a good example or even some source code that
> would be great.
>
> I downloaded an ISAPI filter from Microsoft call ed URLScan that was
> supposed to include the source code but I could not find the source code
> after installing.
>
> Any help would be greatly appreciated.