Re: Protecting Files (how to display vs. present a link to

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62284
interpreted = N
texte = Hello, Stuart Tremain wrote: > If you display the image on a web page you will be able to see the path > of the image. The whole idea of the ReturnRaw method is to stop anyone > from seeing the path. My understanding from what Jesse posted is that the additional to the apache config would prevent people from directly linking to the file anyway. In my case I want to prevent direct linking, but would like to display the images within a webpage once the user has logged in. > I have come across an ASP method of displaying an image from a > database, does anyone know about this ? > Try as I might I cannot get a path for this image. > > I got this out of a product catalog > title="Catalogue No. 2031VETF" alt="Catalogue No. 2031VETF"> Can't help on .asp > > Stuart Tremain > idfk web developments, sydney, australia > > On 20 Jun 2005, at 10:08 AM, eLists wrote: > >> Hello, >> >> Jesse Proudman wrote: >> >>> Here's the code I used: >>> [ReturnRaw binarybody=path/to/file.zip][!] >>> [/!]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] >>> [/!]Status: 200[unurl][line_ending][/unurl][!] >>> [/!]Content-Type: application/octet-stream[unurl][line_ending][/ >>> unurl][!] >>> [/!]Content-Disposition: attachment; filename="file.zip"[unurl] >>> [line_ending][line_ending][/unurl][!] >>> [/!][/ReturnRaw] >>> You just need to replace path/to/file.zip with the path to the pdf >>> and then filename="file.zip" with the name you want the user to see. >>> >> >> Is there a way to have the image be displayed on the webpage vs. >> having a link to the file to be downloaded? >> >> Thank you! The way I am trying to accomplish this is with the following code: --- [ReturnRaw binarybody=[image]][!] [/!]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] [/!]Status: 200[unurl][line_ending][/unurl][!] [/!]Content-Type: image/jpeg[unurl][line_ending][/unurl][!] [/!]Content-Disposition: inline; filename="[image]"[unurl][line_ending][line_ending][/unurl][!] [/!]Content-Description: just a small picture[unurl][line_ending][/unurl][!] [/!][/ReturnRaw] --- Unfortunately this doesn't do the trick. If returnRaw isn't the way to accomplish this, does anyone have an idea on how to, while using a cookie based login, to protect images from being direct linked, while allowing them to be linked and displayed to a user that is properly logged in? Thank you D. >>> Thanks >>> On Jun 10, 2005, at 10:59 AM, Clint Davis wrote: >>> >>>> I read the docs, but I'm not entirely clear on the process. Do you >>>> have some code that you might share? >>>> >>> -- >>> Jesse Proudman >>> Blue Box Group, LLC >>> p. +1.800.613.4305 x801 >>> e. jesse@blueboxgrp.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Protecting Files (how to display vs. present a link to ( "Mark Pace" 2005)
  2. Re: Protecting Files (how to display vs. present a link to ( eLists 2005)
  3. Re: Protecting Files (how to display vs. present a link to ( "Mark Pace" 2005)
  4. Re: Protecting Files (how to display vs. present a link to ( Stuart Tremain 2005)
  5. Re: Protecting Files (how to display vs. present a link to ( eLists 2005)
  6. Re: Protecting Files (how to display vs. present a link to ( Stuart Tremain 2005)
  7. Re: Protecting Files (how to display vs. present a link to ( eLists 2005)
Hello, Stuart Tremain wrote: > If you display the image on a web page you will be able to see the path > of the image. The whole idea of the ReturnRaw method is to stop anyone > from seeing the path. My understanding from what Jesse posted is that the additional to the apache config would prevent people from directly linking to the file anyway. In my case I want to prevent direct linking, but would like to display the images within a webpage once the user has logged in. > I have come across an ASP method of displaying an image from a > database, does anyone know about this ? > Try as I might I cannot get a path for this image. > > I got this out of a product catalog > title="Catalogue No. 2031VETF" alt="Catalogue No. 2031VETF"> Can't help on .asp > > Stuart Tremain > idfk web developments, sydney, australia > > On 20 Jun 2005, at 10:08 AM, eLists wrote: > >> Hello, >> >> Jesse Proudman wrote: >> >>> Here's the code I used: >>> [ReturnRaw binarybody=path/to/file.zip][!] >>> [/!]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] >>> [/!]Status: 200[unurl][line_ending][/unurl][!] >>> [/!]Content-Type: application/octet-stream[unurl][line_ending][/ >>> unurl][!] >>> [/!]Content-Disposition: attachment; filename="file.zip"[unurl] >>> [line_ending][line_ending][/unurl][!] >>> [/!][/ReturnRaw] >>> You just need to replace path/to/file.zip with the path to the pdf >>> and then filename="file.zip" with the name you want the user to see. >>> >> >> Is there a way to have the image be displayed on the webpage vs. >> having a link to the file to be downloaded? >> >> Thank you! The way I am trying to accomplish this is with the following code: --- [ReturnRaw binarybody=[image]][!] [/!]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] [/!]Status: 200[unurl][line_ending][/unurl][!] [/!]Content-Type: image/jpeg[unurl][line_ending][/unurl][!] [/!]Content-Disposition: inline; filename="[image]"[unurl][line_ending][line_ending][/unurl][!] [/!]Content-Description: just a small picture[unurl][line_ending][/unurl][!] [/!][/ReturnRaw] --- Unfortunately this doesn't do the trick. If returnRaw isn't the way to accomplish this, does anyone have an idea on how to, while using a cookie based login, to protect images from being direct linked, while allowing them to be linked and displayed to a user that is properly logged in? Thank you D. >>> Thanks >>> On Jun 10, 2005, at 10:59 AM, Clint Davis wrote: >>> >>>> I read the docs, but I'm not entirely clear on the process. Do you >>>> have some code that you might share? >>>> >>> -- >>> Jesse Proudman >>> Blue Box Group, LLC >>> p. +1.800.613.4305 x801 >>> e. jesse@blueboxgrp.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ eLists

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Bad File: DeleteCommand.html (1998) [isfile] ? (1997) [WebDNA] Server setup question (2013) Misunderstanding?? (1997) Error in searchable archives (2002) RAM variables (1997) A workaround for handling date range search in yyyy/mm/dd form (1997) Re:quit command on NT (1997) WebCat2 - storing unformatted date data? (1997) Weird Math and SV (1997) unsubscribe problems? (2007) Giving out error pages (1997) possible, WebCat2.0 and checkboxes-restated (1997) problems with 2 tags shakur (1997) 404 error -- but wc code executes... (2001) RE: Credit card processing - UK (1997) WebCat2: multiple currency support (1997) RE: LookUp Tag (1997) Webstar 1.3.1 PPC (1997) WebCat editing, SiteGuard & SiteEdit (1997)