 |
 |
 |
 |
#251090 - 06/19/03 08:31 AM
Re: .htaccess directory protection using ubbthreads mysql user names&passwords
[Re: Daine]
|
Addict
Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
|
I think what he's saying though.. is even if you do use the authenticate() function... if a user knows the exact URL, then can still get the file, whether authenticated or not.<br /><br />For example.. say you have to login to use the chat. Granted, that stops 95% of the people from getting access to anything... but, for the smarter people, if they really wanted a file out of the /chat directory, they could try and type in the URLs in their browser until they got it right.<br /><br />I guess this was brought up over at photopost as well, because typically, if you have a private gallery that you can't see unless logged on, or a certain member, then others can't gain access to it. But.. unless the directory has .htaccess setup, users could still type in the URL of those "protected" images and retrieve them.<br /><br />But.. the problem is when you use .htaccess, it will prompt you for another login box, even if you are already logged into threads or likewise. So I think the ultimate goal here is to have the threads login information be passed to .htaccess so the user doesn't have to login again, yet the directory contents are as secure as possible.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#251095 - 06/20/03 03:51 AM
Re: .htaccess directory protection using ubbthreads mysql user names&passwords
[Re: Daine]
|
Enthusiast
Registered: 07/08/99
Posts: 470
Loc: Los Angeles, Rio de Janeiro, M...
|
[]JoshPet said:<br />It's much easier to use the thereads authenticate() function as we do here with the chat mods and such. Then you can use threads user groups to control access. <img src="/forum/images/graemlins/smile.gif" alt="" /> [/]<br /><br />As mentioned by another poster below, this can easily be defeated. I want to implement a Java Chat, for example.<br /><br />You told the the nick change function can be shut off in the paid version. Still I am sure this can be defeated. I don't want to tell her in public how someone can log in with a registered nick without the password, but I am quite sure I know of several methods.<br /><br />Can you assure that in the chat no nick falsification is possible? Actually, in the case of the chat, the only safe way is to put the authentication with our database INTO the chat software. I did that once with the volano chat<br /><br />Actually, I think with the .htaccess protection, if we protect all the chat files with it (the .js files), then it is hard to access the chat without the password, as the files cannot be obtained easily. But if the files are not on our server, then this would not do.<br /><br />But for directories, the only safe way to protect them is apache .htaccess, not just hiding directories. Very easy to find out where they are hidden.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#251100 - 06/20/03 01:48 PM
Re: Please write that module!!!!!!!!! or give me info how to do it!!
[Re: joeuser]
|
Enthusiast
Registered: 07/08/99
Posts: 470
Loc: Los Angeles, Rio de Janeiro, M...
|
[]Dave_L said:<br /><br />Here's the reference I mentioned above:<br /><br />L. Stein & D. MacEachern, "Writing Apache Modules with Perl and C", O'Reilly, 1999, ISBN 1-56592-567-X, Chapter 6 (Authentication and Authorization).<br /><br />Apache modules can be written in either Perl or C. I think Perl is preferable, unless you need it to be really efficient, which probably isn't the case here.<br /><br />You might also check apache.org. Maybe something like this already exists. [/]<br /><br />I am not in the US< so it is probably hard to get that book. I would need something on the web.<br /><br />Also the book might be outdated!! Though I am curious!! looks exciting!! At least I don't need to study C, with perl I get by.<br /><br />Any further links you know, I appreciate. Or will you do it?? <br />I think such a module is sorely needed, no clue why nobody produces it!!!<br />
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|