HttpHandler To Assist In Preventing Image Leeching

Posted by: Radical Development, on 25 Aug 2007 | View original | Bookmarked: 0 time(s)

To help prevent unauthorized folks from linking to your image content use the following HttpHandler. using System; using System.Web; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.IO; using System.Globalization; namespace RadicalDevelopment.RadDevHttpHandlers { public class ImageLeechHandler : IHttpHandler { private static Regex regExHostNameParser = new Regex("(?:www.)?(.*)", RegexOptions.IgnoreCase | RegexOptions.Compiled); ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1071 | Hits: 76

Similar Posts

  • ASP.NET AJAX Release History : Q2 2009 BETA (version 2009.2.616) more
  • Letting ASP.NET Handle Image File Extensions in IIS 6 more
  • Image Transforms with the ASP.NET Generated Image Control more
  • Deep Zoom Image Generation with DeepZoomTools.DLL more
  • ImageDraw 4.0 for ASP.NET now available more
  • Silverlight Server Configuration more
  • RADactive I-Load 2008.R1 released - Wysiwyg image upload-resize-crop tool more
  • Getting Images to render properly in the ASP.NET Designer more
  • ImageDraw 3.0 for ASP.NET now available more
  • Upload Images To SQL Server By Way Of An ASP.NET Web Form more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD