473,785 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding HTTPMODULE for certain pages

I've got a HTTPMODULE that I need to be included on some pages within
my site, but not others. This will allow security (the purpose of the
module) on most parts of my site, but I need to bypass loading the
httpmodule on web services within my site. I do not have direct
access to manipulate the module, so I need to figure out a way to
either enable/add the module on only certain pages, or a way to
disable a module on certain pages. Any idea?

Apr 10 '07 #1
4 2082
I'm honestly not aware of any way to do something like this. I'm sure there
might be some convoluted method of getting around the issue, but I can't
think of anything at the moment. Sorry.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"Bac2Day1" <Ba******@gmail .comwrote in message
news:11******** **************@ s48g2000cws.goo glegroups.com.. .
I've got a HTTPMODULE that I need to be included on some pages within
my site, but not others. This will allow security (the purpose of the
module) on most parts of my site, but I need to bypass loading the
httpmodule on web services within my site. I do not have direct
access to manipulate the module, so I need to figure out a way to
either enable/add the module on only certain pages, or a way to
disable a module on certain pages. Any idea?

Apr 11 '07 #2
"Ben Rush" <kw*****@yahoo. comwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
I'm honestly not aware of any way to do something like this. I'm sure
there might be some convoluted method of getting around the issue, but I
can't think of anything at the moment. Sorry.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"Bac2Day1" <Ba******@gmail .comwrote in message
news:11******** **************@ s48g2000cws.goo glegroups.com.. .
>I've got a HTTPMODULE that I need to be included on some pages within
my site, but not others. This will allow security (the purpose of the
module) on most parts of my site, but I need to bypass loading the
httpmodule on web services within my site. I do not have direct
access to manipulate the module, so I need to figure out a way to
either enable/add the module on only certain pages, or a way to
disable a module on certain pages. Any idea?
The only way to do this is to partition your pages into a folder hierarchy
and then to add a web.config, with the HttpModule configured, to the
subtrees which require that HttpModule.

But you can't do it page-by-page.

John
Apr 11 '07 #3
Why not put the web pages that need the HTTPMODULE into a separate
directory and create a web.config file for the directory to configure
the directory to use the HTTPMODULE?
Charles Zhang
http://www.speedydb.com
(SpeedyDB ADO.NET Provider is the fastest, most secure ADO.NET Provider
over Wide Area Network)
Bac2Day1 wrote:
I've got a HTTPMODULE that I need to be included on some pages within
my site, but not others. This will allow security (the purpose of the
module) on most parts of my site, but I need to bypass loading the
httpmodule on web services within my site. I do not have direct
access to manipulate the module, so I need to figure out a way to
either enable/add the module on only certain pages, or a way to
disable a module on certain pages. Any idea?
Apr 11 '07 #4
I think you place the web pages that need the HTTPMODULE into a separate
directory and create a web.config file for the directory to configure
the directory to use the HTTPMODULE.

Charles Zhang
http://www.speedydb.com
(SpeedyDB ADO.NET Provider is the fastest, most secure ADO.NET Provider
over Wide Area Network)

Bac2Day1 wrote:
I've got a HTTPMODULE that I need to be included on some pages within
my site, but not others. This will allow security (the purpose of the
module) on most parts of my site, but I need to bypass loading the
httpmodule on web services within my site. I do not have direct
access to manipulate the module, so I need to figure out a way to
either enable/add the module on only certain pages, or a way to
disable a module on certain pages. Any idea?
Apr 11 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1587
by: Peter Rilling | last post by:
Can an HttpHandler or HttpModule be invoked on non-ASP.NET pages such as images or ASP or HTML pages? Can I trap a request for those pages? If not, how might I trap those requests?
1
1398
by: Juha Borenius | last post by:
I have a web site that requires some directories to be protected with password. Directories might contain any kind of files from aspx -pages to pdf -documents. Protected directories are not virtual directories - there's only one application. Protection must be controlled from program - so authentication methods provided by framework don't seem to work as there's only one web.config -> can't control each directory independently. I think...
0
1760
by: Cybermedia Marketing | last post by:
I'm trying to convert an ISAPI filter to an httpmodule. The ISAPI filter added custom headers to the response which could later be accessed by the asp page. ISAPI Filter: pvPrep->SetHeader(pfc, "Instance-Id:", info->instance_id); pvPrep->SetHeader(pfc, "Company-Id:", info->company_id); pvPrep->SetHeader(pfc, "Primary:", info->hostname); pvPrep->SetHeader(pfc, "Profile:", buffer);
3
3760
by: Michael Iantosca | last post by:
I have a custom attribute that I attach to certain pages in my application and I want to inspect each page request as it is made to see if the custom attribute is attached to the underlying page class. If is attached I want to perform some action. How can I access custom attributes from an HttpModule? I have to pass a target to the System.Attribute.GetCustomAttribute() call to attempt to retrieve the attached attribute. I tried to access...
10
1913
by: Girish | last post by:
Ok, Ive been thinking about this problem for a while. I have 30 odd aspx pages (already built) on my website that I need to have some validation occur before the page should load. The validation is - TEST if javascript is enabled on the browser + some other plugin checks via javascript. Id rather implement this check without touching any of the aspx files. Reason is the usual - I dont want "same code" clutter in all pages (javascript...
7
2580
by: nail | last post by:
Folks, I develop a HttpModule and it works correct, but one problem is occurs. After I register the httpmodule in the web.config, my pages (not testing http://localhost/site but http://my_machine_name/site) show problems when refresh the page. I guess some kind of javascript problems with the postback methods. Someone has any idea how can i fix it? Thanks
1
1807
by: =?Utf-8?B?TmF2YW5lZXRoLksuTg==?= | last post by:
Hello, I am designing a HTTPModule that tracks and logs all pages visited by user. I am succeeded in that. Now to provide much better experience for the person who monitor's these logs, I need to track the button's clicked on the pages by user also. Is there any way to do this using HTTPModule ? Is it possible to handle which event is going to fire , from an HTTPModule ? I mean if button1 is clicked, is it possible to find out button1...
2
3180
by: Jimi Schacht | last post by:
ok, so, i've got a web project in c#. I'm using IIS instead of dev server. The application builds fine until I add an httpmodule I intend to use for URL rewriting and it's entry in the web.config. the httpmodule is basically a simple implementation as all I've done so far is to implement required methods and to those I've added no code. the app builds but when I go to run it, it says the module type urlrewriter is ambiguous. it says it...
7
4690
by: ADN | last post by:
Hi, I am creating a custom HTTPModule to intercept the request of when the user is attempting to retrieve a session variable. For instance, if I set a session variable in my code like so: session = "Hello World"; When the request for that session variable "myString" is attempted to be retrieved, I would like to intercept that request like so: if (Request is for session variable "myString")
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10155
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3655
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.