Bandwidth Leeching Prevention with Http Handlers
page 2 of 4
by Joseph Chahine
Feedback
Average Rating: 
Views (Total / Last 10 Days): 21447/ 69

Solution

Stopping bandwidth leeching may seem to be a daunting task, but you will see that it is not. All you need to do is to find a way to identify where the requests to your website's contents are coming from. If the Http Referrer isn't the website's domain address itself (or one of its addresses), then the request comes from an external website and it should be discarded. To monitor Http requests, you need to write your own Http Handler(s) to handle requests to images and other file types that must not be accessed by any external website.

As the "System.Web.UI.PageHandlerFactory" handler handles .aspx files, you will see in this article a handler that handles .jpg, .jpeg, .gif, .css, and .js files. You can write as many Http handlers as you want for your web application. The same Http handler can be used for multiple applications.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2021 ASPAlliance.com  |  Page Processed at 2021-03-07 4:23:43 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search