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:

WebCatalog can't find database (1997) Typo in the Online Docs ... (1997) WebDNA Challenge - Was: Why WebDNA is not popular (2002) AW: AW: Credit card processing - UK (1997) Include a big block of text (1997) user/password validation (1998) Progress !! WAS: Trouble with formula.db (1997) Emailer & WebStar Mail and 551 Error (2000) replace using &append=T (2007) RE: Answer: WebDelivery downloads alias, not original ? (1997) WCS Newbie question (1997) redirect from the errorsMessages.db entry (1997) Separate SSL Server (1997) weird convertchars behavior (2000) OT: CC Processors question (2002) [WebDNA] Need Rosetta to install on OS X? (2010) Almost a there but..bye bye NetCloak (1997) Variables for chat (1997) multi-paragraph fields (1997) (OT) Support system (2000)