i am by no means a "webmaster," more like "the web's bitch," but i am just really getting started here.
anyway, i have hosting, and i want to do the following:
i want to be able to im/email a link like www.domain.com/folder/picture.jpg so that when someone clicks it, they can look at that file, but when they try to go to www.domain.com/folder it asks for a username and password. i want anyone to be able to see the file if they have the complete url, but i only want certain people to be able to browse the directory.
right now i have it set up so that when you go to www.domain.com/folder/picture.jpg it asks for username and password, then after entering this, it displays the picture, but if you navigate to the directory, you are already logged in (obviously). is there a way to tweak a .htaccess file to allow it to do what i want? is .htaccess what i actually want to do this with? if so, what should it look like?
if you can help me here, that would be great. thanks.
edit:
oops...i didnt intend for those to be actual links....
anyway, i have hosting, and i want to do the following:
i want to be able to im/email a link like www.domain.com/folder/picture.jpg so that when someone clicks it, they can look at that file, but when they try to go to www.domain.com/folder it asks for a username and password. i want anyone to be able to see the file if they have the complete url, but i only want certain people to be able to browse the directory.
right now i have it set up so that when you go to www.domain.com/folder/picture.jpg it asks for username and password, then after entering this, it displays the picture, but if you navigate to the directory, you are already logged in (obviously). is there a way to tweak a .htaccess file to allow it to do what i want? is .htaccess what i actually want to do this with? if so, what should it look like?
if you can help me here, that would be great. thanks.
edit:
oops...i didnt intend for those to be actual links....