Preventing Hotlinking is IIS

Discussion in 'ASP.NET / ASP.NET Core' started by SwanaOffice, Jul 27, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Greetings everyone,

    I am seeking a solution for IIS that will prevent the displaying of our images on external sites. On Apache servers, there is a way to limit image requests as valid only when they come from the same domain as the one hosting the image file.

    What I would like to do is have a generic image (like our organization's logo, for example) display any time a person tries to request an image directly from an outside source, such as a newsgroup, thus forcing them to either post a link to our site, or to save the image on a server other than ours and not taking up our bandwith on their newsgroup post.

    I hope someone has come up with a solution for this using .Net and IIS.

    Thanks in advance
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    I do not believe IIS has such a function.

    You can do that in .net but it requires you to write a custom http handler.

    quote:Originally posted by SwanaOffice

    Greetings everyone,

    I am seeking a solution for IIS that will prevent the displaying of our images on external sites. On Apache servers, there is a way to limit image requests as valid only when they come from the same domain as the one hosting the image file.

    What I would like to do is have a generic image (like our organization's logo, for example) display any time a person tries to request an image directly from an outside source, such as a newsgroup, thus forcing them to either post a link to our site, or to save the image on a server other than ours and not taking up our bandwith on their newsgroup post.

    I hope someone has come up with a solution for this using .Net and IIS.

    Thanks in advance
    </blockquote id="quote"></font id="quote">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page