December 6, 200817 yr I want to make my testing website secured, so that only I or other authorized personel can view my content. Any help with this would be greatly appreciated! Regards, Brendan
December 7, 200817 yr just to let you know htacess is supposed to have security flaws, this being said i still use this method heavily, although I don't need to bother encrypting passwords when setting this up as webmin does all this for me
December 7, 200817 yr You have to manually add each user which, unless using a global password and username, sucks. I don't think there are security issues however, cPanel uses it, and if that had security problems, about 99% of websites would fail. Seeing as it's only for you or others, .htpswd should suit.
December 7, 200817 yr If you have a cpanel on your server you can set passwords on there for the file. But that does the same kind of thing as Click here. So if you don't have a cpanel use the link that elanman posted. With the cpanel you can add users on to the .Htaccess file when you need to.
December 8, 200817 yr You have to manually add each user which, unless using a global password and username, sucks. I don't think there are security issues however, cPanel uses it, and if that had security problems, about 99% of websites would fail. Seeing as it's only for you or others, .htpswd should suit. 1. you can write apps to auto insert new users on creation / edit (webmin has one built in) 2. most email servers still use sendmail, known to have security flaws yet they don't "fail", .htaccess has got good security, however there are circumstances where it's security can be comprimised. Most security issues for the .htaccess are from users with local access (ie shared hosting accounts). I have built a php-ftp app before and on a shared hosting servers was able to browse any files on their server (including .htpsswrd files). This ment I could MD5 unencrypt anyones password for a given .htpasswrd file. If you have your own server place the .htpasswrd files outside of the web directory (eg root dir). If your on shared hosting... the best you can do is make sure the password is not your hosting username.
Create an account or sign in to comment