Closed Thread Icon

Topic awaiting preservation: Can someone point me to... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=23222" title="Pages that link to Topic awaiting preservation: Can someone point me to... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Can someone point me to... <span class="small">(Page 1 of 1)</span>\

 
Radical Rob
Bipolar (III) Inmate

From: Kapolei, Hawaii USA
Insane since: Jun 2001

posted posted 09-08-2004 06:17

I'm trying to figure out a way to design a page that you need a password to enter. Basicly it's for my clients to preview their videos on my site but I
don't want the whole world looking at it and being able to download the content either. Is there a simple way to do this?

thanks!

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 09-08-2004 06:35

Not in Javascript. Since all the code is downloadable and viewable, any password you create would be simple to crack. I suggest looking in to Perl, PHP, Python, or any other server-side method of doing this.

Server-Side Scripting - Oh my!

Also, if your server is Apache-based, you should be able to password-restrict directories and files with some sort of configuration file. I think ".htaccess" is what you're looking for, though because of my complete and utter lack of knowledge of Apache, I cannot help more there. (EDIT: Aha, kuckus has the information you desire.)

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

(Edited by Iron Wallaby on 09-08-2004 06:40)

kuckus
Paranoid (IV) Mad Librarian

From: Berlin (almost)
Insane since: Dec 2001

posted posted 09-08-2004 06:38

If you're allowed to create .htaccess / .htpasswd files on your server they'd be the option I'd go for.

Try this:
http://gurusnetwork.com/tutorial/htaccess/

or Google for a search for tutorials which esplain how to do it when you don't have telnet access to the server - it's the same procedure, basically, then; you'll just have to use paths you can access via FTP and upload the files that way.

kuckus

Radical Rob
Bipolar (III) Inmate

From: Kapolei, Hawaii USA
Insane since: Jun 2001

posted posted 09-08-2004 06:39

Bummer, not to familiar with that stuff... any other suggestions? What would be the easiest PHP security screen if you could point to one?

TwoD
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Aug 2004

posted posted 09-08-2004 07:56

There is one easy way to password protect your files using nothing but JavaScript. It's not very secure though...

code:
function CheckPass(pass){
window.location="myfiles/"+pass+".htm"
}


The pass is simply the name of the file.
To make this effective you have to place a blank index.htm file in the directory of your "protected" pages or
it'll be easy to crack it.

/TwoD

liorean
Nervous Wreck (II) Inmate

From: Umeå, Sweden
Insane since: Sep 2004

posted posted 09-08-2004 16:41

Oh, come on! Apache: Authentication, Authorization, and Access Control, PHP: HTTP authentication with PHP.

Anything secure needs serverside authentication, by the HTTP AUTH method or other methods.

--
var Liorean = {
prototype: XHTMLGuru.prototype,
abode: "http://codingforums.com/",
profile: "http://codingforums.com/member.php?u=5798"};

TwoD
Nervous Wreck (II) Inmate

From: Sweden
Insane since: Aug 2004

posted posted 09-09-2004 07:52

I said it wasn't very secure.
But since the question was posted in the DHTML/JavaScript section,
I gave an example of what's possible with JS, be it good or bad...

/TwoD

Radical Rob
Bipolar (III) Inmate

From: Kapolei, Hawaii USA
Insane since: Jun 2001

posted posted 09-09-2004 21:16

Thanks guys!

« BackwardsOnwards »

Show Forum Drop Down Menu