Page 1 of 1 |
|
Posted: Thu, 25th Jun 2009 11:41 Post subject: Password protecting web sites |
|
 |
I was wondering is it possible to make some part of website password protected?
I have web site on my uni server, and it has (well some of it) some "legally questionable" content It written in html and I would make only two subpages password protected. I have that robots.txt thing but I want to be safe.
"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson chiv wrote: | thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found. |
|
|
Back to top |
|
 |
Cohen
Posts: 7155
Location: Rapture
|
Posted: Thu, 25th Jun 2009 11:49 Post subject: |
|
 |
|
|
Back to top |
|
 |
|
Posted: Thu, 25th Jun 2009 13:01 Post subject: |
|
 |
I searched google but all I got is how to pw protect php sites and mine is html. Thnx for the article but my server is debian (apache), not ASP (or that lotus thing)...
"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson chiv wrote: | thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found. |
|
|
Back to top |
|
 |
|
Posted: Thu, 25th Jun 2009 13:55 Post subject: |
|
 |
|
|
Back to top |
|
 |
|
Posted: Thu, 25th Jun 2009 15:46 Post subject: |
|
 |
Thanx swingman!!!!!! I've found what I was looking for! HTML Password Lock! 
"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson chiv wrote: | thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found. |
|
|
Back to top |
|
 |
[sYn]
[Moderator] Elitist
Posts: 8374
|
|
Back to top |
|
 |
|
Posted: Thu, 25th Jun 2009 23:21 Post subject: |
|
 |
I've tried that, but I guess I did sth wrong and it didn't worked. I'll give it another try...
"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson chiv wrote: | thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found. |
|
|
Back to top |
|
 |
|
Posted: Fri, 26th Jun 2009 00:08 Post subject: |
|
 |
I'm trying with that .htaccess, but it doesn't seem to work. What am I doing wrong?
Code: | AuthUserFile /home/my_user_name/.htpasswd
AuthType Basic
AuthName "EnterPassword"
<Files blabla.html>
Require valid-user
</Files>
<Files blabla2.html>
Require valid-user
</Files> |
I've made .htpasswd with
Code: | htpasswd -c .htpasswd USER | in my /home folder, not /public_html because it says it's safer (and I believe them ).
I upload .htaccess to my public_html folder because that's where are the sites I want to protect. And when I click on my site on those "blabla" sites it doesn't work. It should ask me username and password, but it doesn't What can be wrong?
"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson chiv wrote: | thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found. |
|
|
Back to top |
|
 |
|
Posted: Fri, 26th Jun 2009 08:36 Post subject: |
|
 |
Never mind! I got it to work! Thnx!!
"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson chiv wrote: | thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found. |
|
|
Back to top |
|
 |
[sYn]
[Moderator] Elitist
Posts: 8374
|
Posted: Fri, 26th Jun 2009 19:53 Post subject: |
|
 |
Sorry for not seeing it sooner! Good job for getting it working.
When considering security always remember that server side is the only safe side. Javascript password protection seems ok on the surface as it stops people getting to the site and when viewing the page in a browser you cant see the javascript thus the password is safe. One wget later and I have your webpage/javascript and password.
The only way of be bypassing the htaccess controls is to get onto the server itself.. by which point they dont matter anyway.
|
|
Back to top |
|
 |
Page 1 of 1 |
All times are GMT + 1 Hour |