[Xitami] directory listing locationbar
Michael diLorenzo
xitami@lists.xitami.org
Sat, 05 Jun 2004 19:43:46 -0400
Being the php guy that I am, may I suggest that you write a php script
that takes the gif that you want to display, copies it to someting else
(temp.gif, perhaps), displays that, and then deletes the copy. Since php
is compiled before the page is delivered, all you see for source code is a
reference to temp.gif, which won't exist by the time the visitor tries to
find it. You won't see any php script in the final web output, and so the
visitor won't know the real name of the picture he's looking at.
It sounds from your question that you might also be wondering about how to
supress directory listings in Xitami itself. That is a setting in
xitami.cfg. Set dirlist equal to zero, and directory listings won't be
displayed for any directory. Or, put an index.html file in your pictures
directory containing a blank page.
On Sat, 05 Jun 2004 15:50:01 -0600, Johannes Prost <xitami@pastryworld.ca>
wrote:
> Hello Marc,
> If I understand this correct, see more below
>
> Am 5 Jun 2004 um 21:11 hat Marc Doigny geschrieben:
>
>> >Xitami 2.5b6
>>
>>
>> There are no stupid questions.
>> For a web server each request (main page, first gif, first jpg, first
>> javascript source, second gif, ... and so on) is a completely new one.
>> The
>> browser has no memory of what was loaded before (except if it looks in
>> the
>> logs).
>>
>> To prevent the usage of your gif, you must create it on-the-fly (using a
>> script, for instance).
>> You also need some server scripts.
>> This is just one example, they are probably more possibilities:
>>
>> <html>
>> <script src=cgi-bin/create.js></script>
>> <script>
>> function makegif(a)
>> {
>> document.write("<img src=' + a + b + '.gif'>");
>> }
>> </script>
>> <body>
>> <h1>This is my protected gif:</h1>
>> <script>
>> makegif("photos/special");
>> makegif("photos/second");
>> </script></body></html>
>>
>> The function "makegif" in your html will create the call to the gif
>> on-the-fly, using the parameter that's provided by create.js
>>
>> Now the special thing resides in create.js.
>> It's a script that produces a single output line (using a random
>> generator)
>>
>> var b = 124582134;
>>
>> and renames the image to
>> photos/special124582134.gif and the same with the second gif.
>>
> because of this randomly chosen "extended" file name the viewer actually
> isn't able to call the
> file directly.
>
>> For more help (and maybe an easier way to do it), you could ask it on
>> the
>> webreference forum:
>> http://www.webdeveloper.com/forum/
>>
> will do that.
>
>
>> marc
>>
>>
> Johannes
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/