password enabled page

This is a discussion on "password enabled page" within the Starting Out section. This forum, and the thread "password enabled page are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 1st, 2007, 06:40
Junior Member
Join Date: Aug 2007
Location: abbottabad
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Question password enabled page

how to add a password enabled page to a site?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 1st, 2007, 07:11
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: password enabled page

What language are you using? ASP? PHP?
It it happen's to be ASP, I am here to the rescue..

ASP-MySQL: Advance Login Page [Step-By-Step Tutorial]

If it is PHP, then here is a complete tutorial!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)

Last edited by Monie; Nov 1st, 2007 at 07:16.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 1st, 2007, 13:24
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: password enabled page

You can do this with .htaccess as well. This link might help you some.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 10th, 2007, 07:25
Junior Member
Join Date: Aug 2007
Location: abbottabad
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Re: password enabled page

no just a simple java code that wen a visitor opens a page shuld hav to first enter a password...can it happen...?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 10th, 2007, 08:42
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,794
Thanks: 0
Thanked 17 Times in 17 Posts
Re: password enabled page

Do you mean JavaScript or Java? They are two completely different things.

If you are looking for a Javascript one, have a peek here: http://javascript.internet.com/passwords/prompt-in.html.

PLEASE BEAR IN MIND THAT PEOPLE CAN LOOK AT YOUR JAVASCRIPT CODE AND THEY CAN ALSO DISABLE JAVASCRIPT ON THEIR BROWSER! I WOULD SUGGEST THAT YOU LOOK AT JACOB'S VERSION UNLESS YOU ARE ABLE TO USE PHP!!
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 10th, 2007, 14:34
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: password enabled page

This is better to be done with htaccess.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Nov 11th, 2007, 23:48
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: password enabled page

Quote:
Originally Posted by saadi babar View Post
no just a simple java code that wen a visitor opens a page shuld hav to first enter a password...can it happen...?
Javascript can do this as well but not secure enough!
You can code then using ASP or PHP.
Using thie link that I gave you, you can do that, provided you know the language as well as any database (MSSQL / MySQL)

If you got any problem to start, let me know..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Nov 13th, 2007, 07:37
Junior Member
Join Date: Aug 2007
Location: abbottabad
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Re: password enabled page

i donno bout php or asp... my web site is simple html....no such databases...
so i need just a simple code or some thing that can protect my certain page or pages from un wanted users...
i want that only some of users who know the passsword can view the page....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Nov 13th, 2007, 13:00
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: password enabled page

Use PHP or ASP ... no Javascript or it won't be a password protected site at all.

Follow the links posted by monie in his first reply.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Nov 13th, 2007, 15:30
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: password enabled page

If you have cpanel you can password protect directories with a little prompt.
If you don't you can do this, but you will have to do it manually with htaccess.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Nov 14th, 2007, 01:06
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: password enabled page

If you are talking about basic HTML, you can't password protect you site!

You could do that using simple javacscript with encripted password embeded in your code but it is still not secure compare if you use ASP or PHP.

Cheers..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Nov 14th, 2007, 01:30
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: password enabled page

Use .htaccess. However, you need an Apache server. If none of the above mentioned work, or you just don't have the technology available, then it will be close to impossible to password protect your site...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Nov 14th, 2007, 01:50
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: password enabled page

A simple ASP page and Access Database will just make your day!
I could teach you how if you want
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Nov 17th, 2007, 07:34
Junior Member
Join Date: Aug 2007
Location: abbottabad
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Re: password enabled page

sure monie tell me....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Nov 17th, 2007, 07:41
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: password enabled page

Quote:
Originally Posted by saadi babar View Post
sure monie tell me....
First, try out my complete tutorial that I have posted HERE The tutorial will show you all that you need to create the login page using ASP-ACCESS or MySQL!

If you don't understand them, then I will come to your help
Cheers..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Nov 18th, 2007, 08:48
Junior Member
Join Date: Aug 2007
Location: abbottabad
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
asp tutorial

i donno mysql database ..can i make a database in ms access and than use it in asp page....
and wat to do with that asp coding...save it in my html page orsave it as name.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Nov 20th, 2007, 06:17
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: password enabled page

Hai, sorry that I could not reply to you this few days coz I am having my first baby (my wife, by the way hehehe..)

I promise to you I will help you as soon as my situation is in control
Regarding your question, you can use ACCESS with ASP. They are much more easy compare when you use ASP with MySQL.

Every page in my Tutorial there, if you want to use them, save them in .asp extention not .htm or .html! You could see the file name from the working example HERE!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old Nov 21st, 2007, 09:05
Junior Member
Join Date: Aug 2007
Location: abbottabad
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Re: password enabled page

very very congratulations.....
its ok...
am trying to understand ur tutorials dnt wry i will do it one day
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old Nov 22nd, 2007, 07:22
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: password enabled page

There are millions of pre-built solutions. But, we can't really make any suggestions until we know what type of server you are working with. Is it a Linux server, or a Windows server? Is it running Apache? Do you have MySQL or some sort of database installed?

Regardless, you can do this though PHP (Linux) with or without the use of databases (MySQL). Just depends on how in depth you are wanting go. You can also do this though ASP (Windows), I honestly have no idea about this option, so I will leave this one for monie. Or finally you can do this though .htaccess. This is a super simple way of adding a password on your website, but you must be using an Apache server. Let me show you some examples...

.htaccess login...
http://creativecoding.webforumz.com/development/

PHP Login with MySQL...
http://www.ldstroop21.org/

ASP Login...
http://www.hotmail.com/

So, first tell us the stats about what you have with your hosting account. Then we will give you the best solution to your issue. Looking forward to your reply, Jacob!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote