It's the first time that I develop a native module of IIS7. I decide to filter some requests ,but I don't know how to prevent a request.
CMyHttpModule::OnBeginRequest(
IN IHttpContext * pHttpContext,
IN IHttpEventProvider * pProvider
)
{
// Is it that just return REQUEST_NOTIFICATION_STATUS if the request must be prevented?
}
I recently contributed to the Professional Microsoft IIS 8 book where I discuss in Chapter 12 how to create a custom module. You can download the source code from the below link.
1 Post
How can I do to prevent a request?
Dec 19, 2012 03:55 AM|Martin_Lin|LINK
It's the first time that I develop a native module of IIS7. I decide to filter some requests ,but I don't know how to prevent a request.
242 Posts
Re: How can I do to prevent a request?
Jan 09, 2013 10:58 AM|Perkinsville|LINK
Hi,
Here is an example showing how to create a native custom module:
http://www.iis.net/learn/develop/runtime-extensibility/develop-a-native-cc-module-for-iis
I recently contributed to the Professional Microsoft IIS 8 book where I discuss in Chapter 12 how to create a custom module. You can download the source code from the below link.
http://www.wrox.com/WileyCDA/WroxTitle/Professional-Microsoft-IIS-8.productCd-1118388046.html
HTH, Benjamin