Forum Moderators: phranque

Message Too Old, No Replies

preventing direct link to images

geocities manages - how?

         

musicales

10:16 am on Feb 28, 2004 (gmt 0)

10+ Year Member



I discovered today that geocities manages not to display an image if it's linked to directly from a web page, even to the extent that a link posted in a forum to the image didn't work ( but did work if you copied and pasted it into the address bar).

Anyone know how to do this? (I use IIS by the way)

AprilS

6:30 am on Feb 29, 2004 (gmt 0)

10+ Year Member



There are multiple ways to accomplish what you've seen on geocities - however "mod rewrite" seems to be the most common way.

I've actually had to impliment this on our server to prevent other sites from directly (hot) linking to our images. I tried MANY different things but mod rewrite is what worked.

Now, we use unix servers with apache - so mo rewrite is quite common. I wasn't sure if mod rewrite was available for IIS so I did a quick search on google and found it is available. Without giving a link do a search for "mod rewrite iis mods" on google.

plumsauce

11:46 am on Mar 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




another search you can try is just iis hotlink

markus007

11:32 pm on Mar 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



use asp.net, have the asp.net process jpg requests and write an event handeler to see where the referer is coming from