"richard" <> wrote in message
news

...
> On Thu, 14 Jan 2010 16:16:26 +1100, dorayme wrote:
>
>> In article <>,
>> richard <> wrote:
>>
>>> On Wed, 13 Jan 2010 22:45:36 -0500, don wrote:
>>>
>>>> I have a folder in my public html folder which I would like to password
>>>> protect so that only certain people would be able to open this link.
>>>>
>>>> How would I do this.......... my website is on a Unix hosting
>>>> account........... www.mywebsite.com/privateFolder
>>>>
>>>> Thanks.........
>>>
>>> ask your host if you can do that or not.
>>> you would need a script for that either in javascript or php.
>>> if you have php then you could set up a sql database and use that.
>>
>> No, it can be done simply on many hosting set-ups if you have access to
>> .htaccess
>>
>> This may help OP:
>>
>> <http://www.freewebmasterhelp.com/tutorials/htaccess/1>
>
> Very true.
> However, that method has some security issues.
> Anyone with the knowledge could hack it.
Bullshit.
I have built a simple test for you RtS. Here is a folder protected via
..htaccess:
http://barefile.com.au/protected/
There is a file in there called index.html.
After you have used your "anyone with the knowledge" to hack it please list
here, for all of us to see, the contents of that file.
Hint: Nothing at all you can possibly do client side will convice Apache to
serve up that file unless you know the userid and password.
I'm waiting...
> Using php and an sql database is,IMO, much more secure.
> Or at least use a CGI script.
Your opinion is rather less than worthless RtS.
And how does PHP and an SQL database protect the image I have also put in my
folder? There is one there. Please also tell us all what is in that image.