Print Page | Close Window

images....

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=5489
Printed Date: 30 March 2026 at 9:20pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: images....
Posted By: Gullanian
Subject: images....
Date Posted: 03 September 2003 at 1:47pm
Any way to stop images showing unless they are called from the server they reside on?



Replies:
Posted By: Diep-Vriezer
Date Posted: 03 September 2003 at 2:35pm
With ton's of code, yes.

-------------
Gone..


Posted By: KCWebMonkey
Date Posted: 03 September 2003 at 2:45pm

http://www.bestfx.com/static/tutorials/servers/htaccess11.phtml - http://www.bestfx.com/static/tutorials/servers/htaccess11.phtml

http://www.arsresources.com/articles/hotlinking-images-movies.shtml - http://www.arsresources.com/articles/hotlinking-images-movies.shtml



Posted By: Gullanian
Date Posted: 03 September 2003 at 6:57pm
thanks so much!


Posted By: Gullanian
Date Posted: 03 September 2003 at 7:46pm
Im not allowed access to .htaccess, is it possible to do it with global.asa?


Posted By: MorningZ
Date Posted: 03 September 2003 at 8:24pm

More ideas

http://www.crystaltech.com/forum/topic.asp?TOPIC_ID=5742&FORUM_ID=1&CAT_ID=1&Topic_Title=Bandwidth+Leaching&Forum_Title=General+Discussion+Forum - http://www.crystaltech.com/forum/topic.asp?TOPIC_ID=5742&FORUM_ID=1&CAT_ID=1&Topic_Title=Bandwidth+Leaching&Forum_Title=General+Discussion+Forum

i am using the Leech Blocker on my dedicated server.. works pretty well



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: dpyers
Date Posted: 04 September 2003 at 12:57am
Put the images outside of your web root space and use the physical path within asp scripts to reference them. Anyone who tries to reference them outside of one of your asp scripts will get a 404.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: MorningZ
Date Posted: 04 September 2003 at 6:25am

that will not work because that physical path to an image doesn't exist on anyone elses computer.. anyone surfing the site NOT on the server itself will not see the images

all html does is tell the client's browser "where" to go for the image, not provide the image itself.....

so if at my morningz.com site i had:
<img src="c:\inetpub\wwwroot\images\someimage.jpg"/>

that's telling your browser where to go, and it has zero idea what that is



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Bluefrog
Date Posted: 04 September 2003 at 8:22am
Please excuse my ignorance... but why would people want to steal images from someone? I could see if it was a porn server, because that's a nasty tough business, but if you're not doing porn, I don't know why... Just curious really.


Posted By: Diep-Vriezer
Date Posted: 04 September 2003 at 8:24am
You can download the image to a temp directory, wich is in the app, and when you unload, delete it.

-------------
Gone..


Posted By: MorningZ
Date Posted: 04 September 2003 at 8:38am

Originally posted by Bluefrog Bluefrog wrote:

Please excuse my ignorance... but why would people want to steal images from someone? I could see if it was a porn server, because that's a nasty tough business, but if you're not doing porn, I don't know why... Just curious really.

you think porn sites are the only sites out there who want to protect intellicual property such as, yes images??

i know i my site there's about 300 articles and "how-to"-s all with images showing what to do.... and i sure in hell don't like it when someone points out that some other site pawns that image off as "theirs".. i spent my time and my effort to take that image to show what I am doing, i'd like to keep it "mine".......



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Bluefrog
Date Posted: 04 September 2003 at 8:47am

Porn isn't exactly the classiest stuff around, so I'd expect it there.

But for something like what you've mentioned, I would expect people to have a bit more decency. Is it really a problem? I mean, do people really leech like that?



Posted By: MorningZ
Date Posted: 04 September 2003 at 8:57am

people are, to quote Michal Bolton in the movie "Office Space":
No talent ass clowns

I couldn't tell you how many sites over the years i have seen come onto my site, do a "View Source", paste it somewhere on their site, then pass it off as theirs......



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: dpyers
Date Posted: 04 September 2003 at 9:09am

That's why you need to do it by using an asp script to render the image on the page.

<%=mysite.com/imageretriever.asp?id=whatever.jpg%>

imagereriever.asp would be a proxy server - similar to Leech Blocker. Images could be either outside of the root space, or within a directory that has script only access. HTTP_REFERRER's not within mysite.com wouldn't be served.

Other way to do it is to have the links point to an image in a non-existant directory, and put proxyserver code within the 404 page.

 



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Gullanian
Date Posted: 04 September 2003 at 10:55am
I do it because bandwith costs money, and people are starting to use images they uploaded to my server as signaure images in other forums


Posted By: Diep-Vriezer
Date Posted: 04 September 2003 at 2:46pm
dpyers, how do you exactly configure the imageretriever.asp(x)?

-------------
Gone..


Posted By: Diep-Vriezer
Date Posted: 04 September 2003 at 2:49pm

Nono, wait. The image is still stored on the client's pc. So the image can be saved by using the browser. You can, kinda like, avoid this, by simply adding <img ... OnContextMenu="javascript: return false;"> to a picture or the body. That would make it alot harder, even better it is, to load the page in a frame, wich has the ContextMenu=False wich leads to a page with a ContextMenu=False, where the image can't be right clicked.

Not waterproof, but it works for me



-------------
Gone..


Posted By: Diep-Vriezer
Date Posted: 07 September 2003 at 3:42pm

This might help:

<img src="lol.gif" NOSAVE OnContextMenu="javascript: return false;">

Now the picture will not be stored in the cache.



-------------
Gone..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net