View previous topic :: View next topic |
Author |
Message |
x32825 -
Joined: 09 Jan 2004 Posts: 2
|
Posted: Fri Jan 09, 2004 9:48 pm Post subject: password protected part |
|
|
how do i make a password protected part of my website with just using .htm or .html and no php or perl or asp |
|
Back to top |
|
 |
some random person -
Joined: 06 Oct 2003 Posts: 128 Location: I live here! At my house!
|
Posted: Fri Jan 09, 2004 11:12 pm Post subject: |
|
|
Well its really not possable. You could use javascript but someone can view the code easily and just copy the password and username. If you want something secure, you will need php or something like it. _________________ New image comming soon...
Image hosted by abyss powered website
Image copyright some random person (I made it......)
Abyss > Apache (Meaning abyss is better than apache)
My site powered by abyss->(Undergoing construction) |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Jan 09, 2004 11:31 pm Post subject: |
|
|
It is possible with version 1.2 and up , aprelium has added a feature
that uses patterns to protect a file , if you would like to password protect a file , just type this as your protected path
/*file.html or
/files/*your.html
I hope this helps you out ! 8)
Here's proof
my site is / and my html file is /file.html
http://os17fan.cjb.net:82/
http://os17fan.cjb.net:82/file.html (protected file but same path)
Username: test
Password: abyss |
|
Back to top |
|
 |
some random person -
Joined: 06 Oct 2003 Posts: 128 Location: I live here! At my house!
|
Posted: Fri Jan 09, 2004 11:50 pm Post subject: |
|
|
That never worked for me. All it does is display my 404 page over that file... And I need to password protect phpMyAdmin soon... _________________ New image comming soon...
Image hosted by abyss powered website
Image copyright some random person (I made it......)
Abyss > Apache (Meaning abyss is better than apache)
My site powered by abyss->(Undergoing construction) |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Jan 09, 2004 11:55 pm Post subject: |
|
|
Your default error page shouldn't be set , I used my default error page and every time I password protect something it would show my error page instead , delete your default error page and add your error page to the list of error pages code: 404 url: your error page and it will work |
|
Back to top |
|
 |
some random person -
Joined: 06 Oct 2003 Posts: 128 Location: I live here! At my house!
|
Posted: Sat Jan 10, 2004 12:38 am Post subject: |
|
|
Ah, ok. Works now :D _________________ New image comming soon...
Image hosted by abyss powered website
Image copyright some random person (I made it......)
Abyss > Apache (Meaning abyss is better than apache)
My site powered by abyss->(Undergoing construction) |
|
Back to top |
|
 |
x32825 -
Joined: 09 Jan 2004 Posts: 2
|
Posted: Sun Jan 11, 2004 4:17 pm Post subject: |
|
|
aha i found it out to password protect my whole server and add peoples auth's ect |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Jan 11, 2004 6:39 pm Post subject: |
|
|
Did my suggestion help ? "x32825" |
|
Back to top |
|
 |
|