GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am making my website and I want to know if there is a way to password protect an html site so everyone can see the index of the site. Then I can have a link called "darin's stuff" and if someone clicks on it they will be prompted for a password, but I of course know the password.
Yes you can use a ".htaccess" file. To protect a directory so you can put all your files that are to be protected in that directory.
1) You will need "options AuthConfig" turned on in httpd.conf for that directory.
2) Your ".htaccess" file should be put in the directory too be protected and should look like:
I don't think your quite following. The setup for htaccess doesn't take place in the actual html of the page. You need to setup your httpd.conf file with those parameters along with an actual .htpasswd file and such. You should read up on the docs for htpasswd at www.apache.org for more information.
I get it. i did a google for .htaccess and found a lot more useful stuff than when I did html passwords. I was trying to see if I could just password protect a directory and uploaded .htaccess and .htpasswd into a directory. I need to change some stuff now and I go to delete the directory that I made and gftp says I can't because it is not empty. I went into it to get rid of the .htaccess and .htpassed files but I don't see them. How do I get them off? Ahh the joys of html ineptness
Here is a screenshot of gftp. I have it selected to show hidden files but as you can see at the bottom it won't let me delete the directory I am in at the right.
You will still need to delete the files first and I think the key to your problem can be seen in the second line of the log - it is loading the file list from cache. Try refreshing the file listing.
everytime I try to delete folder 2, it gives me a "directory not empty" and I can't see any folders in the directory. I put my .htaccess and .htpasswd files in there but they don't show up
Originally posted by darin3200 everytime I try to delete folder 2, it gives me a "directory not empty" and I can't see any folders in the directory. I put my .htaccess and .htpasswd files in there but they don't show up
That's because you're ignoring what people tell you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.