12
Shouts

ASP.NET MVC - Prevent Image Leeching with a Custom RouteHandler

published 869 days, 13 hours, 13 minutes ago posted by MikesdotnettingMikesdotnetting 873 days, 4 hours, 9 minutes ago
Tuesday, December 29, 2009 1:29:13 PM GMT Friday, December 25, 2009 10:33:07 PM GMT

ASP.NET MVC - Prevent Image Leeching with a Custom RouteHandler   Have you ever noticed an unusually high number of requests in your web server log files for image files? It may well be that someone is linking to your images from their own site, and basically stealing your bandwidth. Here's how to implement a custom RouteHandler within an ASP.NET MVC application to prevent people leeching your images.

 

To begin with, I'll start by reviewing the flow of execution when a request comes ...

category: ASP.NET | clicked: 2 | | source: www.mikesdotnetting.com | show counter code
tags: ASPNETMVC