•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 423,013 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,969 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2275 | Replies: 24
![]() |
| |
•
•
Join Date: Jan 2006
Location: Tennessee
Posts: 1,567
Reputation:
Rep Power: 6
Solved Threads: 102
Heh first off, I want to thank the responders here for the help given.
Ok, now for the prob.
I just wrote my first ever HTML page (awful if ya ask me), and I'm mainly using it as a place to keep files and such. However, it's still in development.
What I'm trying to do is password protect it's directory and all the files inclosed inside it.
Some more slight background stuff.
I read over this page for some tips, and here's my sort-of response to it:
1) I don't really need something super secure. I just want protection from the basics.
2) admin privs - I have admin status inside my directory
3) I dunno which OS/webserver I'm using
(see, this space was given as a sorta gift). Is there a way to check this?
Here's the current code if ya wanna see that:
[html]<html>
<head>
<title>le John</title>
<link rel=stylesheet type="text/css" href="style.css">
</head>
<FONT FACE="Tempus Sans ITC">
<body bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0" background="img/NASA2-2.gif">
<table height="123" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td><img src="img/Einstein1.JPG" width="141" height="190" border="0" alt=""></td>
<td width="100%" background="img/spacetime.jpg"> </td>
</tr>
</table>
<table height="40" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="100%" background="img/spacetime.jpg"> </td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="201"><BR>
» <a href="http://stoic_sleeper.livejournal.com/"><FONT COLOR="#FF6600"><B>My Life</B></FONT></a><BR>
<img src="img/menubar.jpg" width="201" height="11" border="0" alt=""><BR>
» <a href="http://www.sultanofmirth.com/jhay116/pics"><FONT COLOR="#FF6600"><B>My Pics</B></FONT></a><BR>
<img src="img/menubar.jpg" width="201" height="11" border="0" alt=""><BR>
» <a href="http://www.webaddresshere.com"><FONT COLOR="#FF6600"><B>Me Music</B></FONT></a><BR>
<img src="img/menubar.jpg" width="201" height="11" border="0" alt=""><BR>
» <a href="http://www.webaddresshere.com">your link</a><BR>
<img src="img/menubar.jpg" width="201" height="11" border="0" alt=""><BR>
</td>
<td width="100%">
<table width="100%" cellpadding="10" cellspacing="0" border="0">
<tr valign="top">
<td>
<h2><CENTER><FONT FACE="Tempus Sans ITC" SIZE="+3" COLOR="#FF0000">The Life and Times of John</FONT></CENTER></h2>
<HR WIDTH="75%" COLOR="#FF0000" SIZE="4">
<p <P align="center"><FONT FACE="Tempus Sans ITC" COLOR="#FFFF00">Well, this is just for kicks...for the most part. In reality, this is here so I have a place to backup my hard drive.<BR></p>
<p </p>
<p </p>
</FONT>
<BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR>
<p align="center">
This site is © Copyright John Haydek 2006-2007, All Rights Reserved<BR></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</FONT>
</html>
[/html]
By the way, if ya wanna point out any obvious problems with it, feel free to :mrgreen:
Lastly, here's the site we're lookin at:
www.sultanofmirth.com/jhay116
Thanks again.
Ok, now for the prob.
I just wrote my first ever HTML page (awful if ya ask me), and I'm mainly using it as a place to keep files and such. However, it's still in development.
What I'm trying to do is password protect it's directory and all the files inclosed inside it.
Some more slight background stuff.
I read over this page for some tips, and here's my sort-of response to it:
1) I don't really need something super secure. I just want protection from the basics.
2) admin privs - I have admin status inside my directory
3) I dunno which OS/webserver I'm using
(see, this space was given as a sorta gift). Is there a way to check this?Here's the current code if ya wanna see that:
[html]<html>
<head>
<title>le John</title>
<link rel=stylesheet type="text/css" href="style.css">
</head>
<FONT FACE="Tempus Sans ITC">
<body bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0" background="img/NASA2-2.gif">
<table height="123" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td><img src="img/Einstein1.JPG" width="141" height="190" border="0" alt=""></td>
<td width="100%" background="img/spacetime.jpg"> </td>
</tr>
</table>
<table height="40" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="100%" background="img/spacetime.jpg"> </td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="201"><BR>
» <a href="http://stoic_sleeper.livejournal.com/"><FONT COLOR="#FF6600"><B>My Life</B></FONT></a><BR>
<img src="img/menubar.jpg" width="201" height="11" border="0" alt=""><BR>
» <a href="http://www.sultanofmirth.com/jhay116/pics"><FONT COLOR="#FF6600"><B>My Pics</B></FONT></a><BR>
<img src="img/menubar.jpg" width="201" height="11" border="0" alt=""><BR>
» <a href="http://www.webaddresshere.com"><FONT COLOR="#FF6600"><B>Me Music</B></FONT></a><BR>
<img src="img/menubar.jpg" width="201" height="11" border="0" alt=""><BR>
» <a href="http://www.webaddresshere.com">your link</a><BR>
<img src="img/menubar.jpg" width="201" height="11" border="0" alt=""><BR>
</td>
<td width="100%">
<table width="100%" cellpadding="10" cellspacing="0" border="0">
<tr valign="top">
<td>
<h2><CENTER><FONT FACE="Tempus Sans ITC" SIZE="+3" COLOR="#FF0000">The Life and Times of John</FONT></CENTER></h2>
<HR WIDTH="75%" COLOR="#FF0000" SIZE="4">
<p <P align="center"><FONT FACE="Tempus Sans ITC" COLOR="#FFFF00">Well, this is just for kicks...for the most part. In reality, this is here so I have a place to backup my hard drive.<BR></p>
<p </p>
<p </p>
</FONT>
<BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR>
<p align="center">
This site is © Copyright John Haydek 2006-2007, All Rights Reserved<BR></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</FONT>
</html>
[/html]
By the way, if ya wanna point out any obvious problems with it, feel free to :mrgreen:
Lastly, here's the site we're lookin at:
www.sultanofmirth.com/jhay116
Thanks again.
Last edited by 'Stein : Jul 19th, 2006 at 1:20 am.
Now if ya like the help ya could always raise our reputation...
encryption perhaps?
http://home.zonnet.nl/MAvanEverdingen/Code/
Also, I would have thought if you are using some sorta database mysql or something, it may have built in security features?
http://home.zonnet.nl/MAvanEverdingen/Code/
Also, I would have thought if you are using some sorta database mysql or something, it may have built in security features?
Last edited by iamthwee : Jul 19th, 2006 at 4:56 am.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
•
•
Join Date: Jan 2006
Location: Tennessee
Posts: 1,567
Reputation:
Rep Power: 6
Solved Threads: 102
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 108
•
•
Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation:
Rep Power: 4
Solved Threads: 6
If you only need a simple (few lines) code/script to provide basic protection, I would suggest google search for javascript password gate or similar.
Ecommerce-Web-Store.com Building Your e-Business.
•
•
Join Date: Jan 2006
Location: Tennessee
Posts: 1,567
Reputation:
Rep Power: 6
Solved Threads: 102
tgreer- you couldnt password protect with html, even if it didnt matter how secure it is? Truthfully, I just dont want friends purveying my site
comatose- how would ya set permissions on the directory.
Lastly, would a javascript password gate work?
Thanks guys.
comatose- how would ya set permissions on the directory.
Lastly, would a javascript password gate work?
Thanks guys.
Now if ya like the help ya could always raise our reputation...
•
•
•
•
Originally Posted by 'Stein
Lastly, would a javascript password gate work?
Thanks guys.
How about this:-
http://javascriptkit.com/script/cutindex6.shtml
It requires a password to open up a .html file. And there you can put all your secret documents.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
•
•
•
•
Originally Posted by tgreer
Stein: no, you can't password-protect with client-side scripts or markup. Any code you wrote would have to be interpreted by the browser, which means it is sent to the browser, which means any password would be embedded in the code. It's as simple as viewing the source, then entering the password.
Not if you use encryption, which was one example given in that link I provided.
•
•
•
•
Encrypted Password Generator
Use our password generator to help password protect your web pages. Using advanced JavaScript techniques and some ciphering tricks, this program encrypts the password specified before storing it on the page, making it "unviewable" by simply looking at the page's source.
Last edited by iamthwee : Jul 20th, 2006 at 11:33 am.
I'm not a programmer. My attitude starts with ignorance, holds steady at conversation, and ends with a trip to the hospital. Get used to it.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Password Protection from a txt.file (HTML and CSS)
- Access Sub switchboard password protection (Visual Basic 4 / 5 / 6)
- password protecting files on another HD (Windows NT / 2000 / XP / 2003)
Other Threads in the HTML and CSS Forum
- Previous Thread: hi all need help reg button images
- Next Thread: how to place media page requests on background color



Hybrid Mode