Preventing external image linking

Discussion in 'ASP.NET 2.0' started by jordanbrock, Oct 24, 2005.

  1. Howdy,

    Does anyone know of a simple (eg like .htaccess on Apache) way of preventing external websites from linking to images on an IIS server? Some myspace and xanga people have got hold of some images on one of my client sites, and apart from the bandwidth issue, it's skewing the stats.

    Any ideas?

    Cheers,
    Jordan
     
  2. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

  3. It's kind of difficult to do that (rename images) because the images are automatically named by the CMS on the site.

    There are apparently third party components, but it appears they are all ISAPI filters or the like, which means it would need to be something that DiscountASP.Net wanted to do. It's a shame, because it's amazingly simple on apache and lighttpd. Oh well.

    Thanks for the suggestions.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    not out of the box. IIS doesn't have anything to prevent hotlinking.

    i believed there are some ASP.NET HTTP module that would allow you to do that but it requires quite a bit of change to your site.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    Unfortunately, we do not install any ISAPI filter because if it crash, it take down the whole server.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  6. Thanks anyway Bruce.
     

Share This Page