Re: FTPc and Orpheus Websites
- From: John Rickman <rickman@xxxxxxxxxxxxx>
- Date: Sat, 18 Mar 2006 23:53:07 GMT
In message <na.3901c84e07.a80620john.nolan@xxxxxxxxxxxxxxxxx>
John Nolan <john.nolan@xxxxxxxxxxxxxxxxx> wrote:
Then, I might consider including some pages that can only be accessed via a
pssword. Do any of you know if and how this can be done with RISCOS ?
You can password protect any web with a few lines of Java script as
follows:-
Put a directory containing the resources you want to protect on your
website along an html page with links to the protected stuff.
Do not have any direct references to the index page from anywhere on
your site.
In order to link to the index page use the following code:-
<script language="JavaScript"><!--
function go() {
window.location.href = document.formname.passwordName.value+".htm";
return false;
}
//--></script>
<form name="formname" onsubmit="return go()">
Enter the word:<br>
<input type="password" name="passwordName" value="" size="10">
</form>
This puts a form in your browser window and adds .htm to whatever name
you key in, then opens that file - if it exists.
You can have as many hidden pages as you want, and can change them
whenever you want also.
There is an example of this technique on my website.
To find it:-
A click on the web address in sig below
B click on the first red car,
C click on the gate
D type a password into the form and press return.
(one word that works at the moment is - private :-)
check out the source code of the various pages.
You do need java script enabled - O2 works and Firefox work but not
Webster. Haven't tried Fresco.
--
John Rickman - http://rickman.orpheusweb.co.uk
.
- Prev by Date: Re: False Email addresses and Newsgroup SPAM.
- Next by Date: Re: Open to Offers: New CD-RW drive...
- Previous by thread: Re: FTPc and Orpheus Websites
- Next by thread: Re: FTPc and Orpheus Websites
- Index(es):
Relevant Pages
|