m107 0 Report post Posted August 14, 2006 hii have a free webhost included cpanelbut it's cpanel is not full and i can not protect my dir through it.then i think i should use .htaccess .now i dont how i must creat .htaccess files or hoy to using it can any one help me pl Share this post Link to post Share on other sites
Lyon2 0 Report post Posted August 14, 2006 (edited) Here is everything you must know: Htaccess https://en.wikipedia.org/wiki/Htaccess There you can see how to protect with password and a lot more, at least what it really matters. --------- Here is a very complete tutorial, with 3 parts, of htaccess http://www.freewebmasterhelp.com/tutorials/htaccess/1 Edited August 14, 2006 by Lyon2 (see edit history) Share this post Link to post Share on other sites
m107 0 Report post Posted August 14, 2006 Here is everything you must know:Htaccesshttp://en.wikipedia.org/wiki/HtaccessThere you can see how to protect with password and a lot more, at least what it really matters. thank youbut how can i use that code?i can not creat a .htaccess file on my pc to upload it what should i do? Share this post Link to post Share on other sites
Lyon2 0 Report post Posted August 14, 2006 (edited) Try this htaccess file generator and htaccess password generator:http://forums.xisto.com/no_longer_exists/or this simple yet good:http://shop.alterlinks.com/htpasswd/htpasswd.phpor this one (very good):http://cooletips.de/htaccess/orOpen notepad, insert the code you want, after reading those tutorials, then save it has htaccess.txt .Then go to the folder where you saved the htaccess.txt file and rename it to .htaccessThat is it, exactly like that: .htaccess (with the point behind, and no extension.)Then upload it to the directory you want to protect with password or whatever you want to do.You must read that complete tutorial, or the first link. Edited August 14, 2006 by Lyon2 (see edit history) Share this post Link to post Share on other sites
iGuest 3 Report post Posted October 4, 2009 some users can't rename a file and take out the beginning, so open it in text, file>save as then in the drop down list, instead of selecting text files, select all files now in the name area, type ".Htaccess", hit save, and you're set. Share this post Link to post Share on other sites