Rather than utilise Youtube, the aim of this website is to enable family and friends to go onto the website and select and play videos / photos.
So I have now built the website and loaded it up to my ISP using Filezilla FTP client and it works ok.
When in Filezilla the directory structure looks as follows:
Top folder = /htdocs
Within this folder exist more sub folders = _zisp, contact, geometry, image and media.
My aim now is to ensure the website is private by adding a password to access the website. Searching the web via google I found the following article, which described a method / code that appealed to me.
Here’s the link = http://tashian.com/htmlguide/password.html
I tried out the lazysnake link test from this article and then created via notepad my own xxxxx.html, pasted the code from the article into the xxxxx.html file.
location.href = 'http://www.changethis.com/~you/' + escape(pwd) + '.html';
location.href = 'http://www.travelbuddies.webspace.virginmedia.com/' + escape(pwd) + '.html'
Note: I did not include “~you/” part in the change to my website link, as I thought this referred to a folder on the www.changethis.com
I then saved the xxxxx.html file in a folder on my “c” drive.
I then tried to test the xxxxx.html by opening it using windows explorer as follows:.
I right clicked to open the file. The screen page with “you must have a password to enter this site! Together with Enter Site button appeared.
I then clicked on the Enter Site button and the script prompt box appeared in the top left of the screen.
I keyed the password i.e. xxxxx and clicked on OK.
The screen refreshed with PWP - 404 Error This Page Cannot Be Found.
I tried adding the “~you/” and go the same result.
I then did an ftp load of the xxxxx.html to /htdocs folder on my website and immediately opened my website. No new screen appeared (i.e. you must have a password etc”.
So I think I’ve got the coding correct for the xxxxx.html file but I’ve obviously not understood this process re linking the file to the existing website.
Would appreciate any advice, preferably a set by step guide on how to achieve password protection.
Hope this makes sense and look forward to any advice you have to offer.