![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Feb 2006
Posts: 22
Rep Power: 0
![]() |
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:
|
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#3 |
|
Newbie
|
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. |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Feb 2006
Posts: 22
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Check out .htaccess and .htpasswd. A quick Google found this, among many others:
http://www.unh.edu/NIS/Docs/Web/htaccess-eg3.html |
|
|
|
|
|
#6 |
|
Programmer
Join Date: Mar 2006
Posts: 36
Rep Power: 0
![]() |
If you have Cpanel on your hosting you could always go to Password Protected Directories and get it from there..
|
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#8 | |
|
Programmer
Join Date: Mar 2006
Posts: 36
Rep Power: 0
![]() |
Quote:
I meant you can go to control panel and goto the Password Protected Directory and password protect a web page there.. Sorry about that. |
|
|
|
|
|
|
#9 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#10 |
|
Sexy Programmer
|
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! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|