Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 7th, 2006, 8:30 PM   #1
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
Exclamation Password Protection

Does anyone know how to protect a page by using a password to protect the website contents from invaders? I'm trying to use JavaScript but those script doesn't work perfectly and they can be found in the view source. Please I need help!!! :eek:
DBZ is offline   Reply With Quote
Old Apr 7th, 2006, 9:09 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Do you mean to keep someone from accessing stuff on the server? Bear in mind that most things used by the browser in its job have to be accessible to the browser. That's essentially anyone. You may introduce authentication measures, with or without secure http. Try not to panic, so you'll be able to describe your goals.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 7th, 2006, 9:12 PM   #3
mongeau
Newbie
 
mongeau's Avatar
 
Join Date: Apr 2006
Location: Fargo, ND
Posts: 29
Rep Power: 0 mongeau is on a distinguished road
Send a message via MSN to mongeau
Well, you could do this a few ways. One, you could create a .htaccess file for username and password prompts. This would easily protect certain areas of your site. You can read a comprehensive guide here.

Second, you could use PHP (or, some variant) and MySQL to create a login page. Though, assuming your skill level as n00b, I would choose the first option.
__________________
I wish I was you, so I could be friends with me.
mongeau is offline   Reply With Quote
Old Apr 9th, 2006, 10:25 AM   #4
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
um. my site is a html page and my server dunt support php and mysqul. so i need like a login thingy to pop up and tell you to login so you can access the mainframe page.
DBZ is offline   Reply With Quote
Old Apr 9th, 2006, 10:33 AM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Check out .htaccess and .htpasswd. A quick Google found this, among many others:

http://www.unh.edu/NIS/Docs/Web/htaccess-eg3.html
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Apr 24th, 2006, 4:23 PM   #6
ReubenK
Programmer
 
ReubenK's Avatar
 
Join Date: Mar 2006
Posts: 36
Rep Power: 0 ReubenK is on a distinguished road
If you have Cpanel on your hosting you could always go to Password Protected Directories and get it from there..
ReubenK is offline   Reply With Quote
Old Apr 24th, 2006, 5:01 PM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Get what? Javascript? Please let this inane thread die its rightful death.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 24th, 2006, 6:01 PM   #8
ReubenK
Programmer
 
ReubenK's Avatar
 
Join Date: Mar 2006
Posts: 36
Rep Power: 0 ReubenK is on a distinguished road
Quote:
Originally Posted by DaWei
Get what? Javascript? Please let this inane thread die its rightful death.
Sorry,I mis-worded myself there..
I meant you can go to control panel and goto the Password Protected Directory and password protect a web page there..
Sorry about that.
ReubenK is offline   Reply With Quote
Old Apr 24th, 2006, 6:04 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
It wasn't the mis-wording. This fellow has been asking all over the forum for Javascript to protect his site from those dastardly source-copiers . It ainna gonna happen. While we aren't sure we convinced Copernicus' enemies that the earth did indeed circle around the sun, we felt we had made some minor headway and buried a skunk that was stinking to high heaven.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 24th, 2006, 9:16 PM   #10
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 4 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
lol, it's like the 4th thread on the same matter!
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:04 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC