PDA

View Full Version : Preventing Hotlinking is IIS


SwanaOffice
07-27-2004, 04:28 AM
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

bruce
07-27-2004, 07:38 AM
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.

[b]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">