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);
...