protecting images in rev-cgi generated html

Stephen Barncard stephenREVOLUTION2 at barncard.com
Tue Jan 29 13:21:25 EST 2008


This is referring to the method of using a database or non-web 
directory to hold the actual data to be displayed (in this case html 
links to photos) . The database method inserts the URL at page 
creation time, as opposed to it sitting there in static html on a 
page.  Most of  the commercial web runs this way, using something 
like PHP and some kind of database on the server side, and java 
whatever on browser side.

user localhost (running your script) should be able to read from a 
directory at least one above the web directory.

  The database doesn't have to be SQL, it could be text files in a 
folder that isn't web - accessible. For that matter, the graphics 
could be in a server directory above the html web site one, and would 
not be publicly accessible, only by your password protected FTP 
account.

>
>   "A better solution would be to use a server-side
>   scripted approach, where the user sees a single
>   script-generated page, which then includes images
>   by calling them by *filename* on the server, not
>   by URL. These images need not even have a URL,
>   and would be accessible only by the script."
>

-- 


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -






More information about the use-livecode mailing list