Put your images in a folder that is not part of your web tree. Use a page that accesses the file system to return the image to only specific referrers via <img src="imagepage.aspx?imageid=1234.jpg">
This will only prevent someone from going to the image folder and getting the images. It will not prevent them from viewing your page with the images on it and saving the images from the page. Bob Filipiak A question not asked is a lost opportunity to learn. ----- Original Message ----- From: "patrickekenney" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 15, 2004 11:35 AM Subject: [AspNetAnyQuestionIsOk] Re: How to prevent image & bandwidth theft using iis and asp.net > > > Basically, I am trying to figure out the best way to check to see if > referer is not my server/ip/domain name etc., then prevent access, > loading etc... > > there is plenty of Apache & php examples out there to prevent image, > bandwidth theft, hotlinking etc., I am looking for a snippet > using .NET/IIS/C#.NET/VB.NET or JScript/JavaScript or html or > otherwise on a IIS based server... > > thanks in advance. > > > > > > > > Yahoo! Groups Links > > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
