Jump to content
xisto Community
m107

How To Modify .htaccess To Protect A Directory?

Recommended Posts

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 :):P can any one help me pl

Share this post


Link to post
Share on other sites

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 by Lyon2 (see edit history)

Share this post


Link to post
Share on other sites

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.php

or this one (very good):
http://cooletips.de/htaccess/

or

Open 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 .htaccess

That 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 by Lyon2 (see edit history)

Share this post


Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.