create htaccess file?
how create htaccess and htpasswd file ?
how config those files?
A simple howto guide
how create htaccess and htpasswd file ?
how config those files?
A simple howto guide
for exampl: my website is www.mywebroot.com and I want to protect folder
www.mywebroot.com/admin . .htaccess file shoud be as below?
—
AuthType Basic
AuthName "???"
AuthUserFile www.mywebroot.com/.htpasswd ???
require valid-user
—
Try the following…just some minor changes were made.
AuthType Basic
AuthName "???"
AuthUserFile www.mywebroot.com/.htpasswd
require user username
I’m trying to restrict access to a directory through a password on
my server, but allow direct linking without authentication.
As of now, I have the following snippets of code:
AuthType Basic
AuthName "Access for /backup"
AuthUserFile /etc… /htpasswd
require user whateverusername
Options +Indexes +MultiViews +FollowSymlinks
<Files *.mp3>
Allow From All
</Files>
I don’t know what to modify to allow direct access to the [...]
I am a web designer with a business and need a very reliable hosting provider. I work with flash, fireworks, dreamweaver, and photoshop cs2. At first I was with yahoo until I foun out they did not allow .htaccess files, with globat, my site was down too much, I am with go daddy right [...]
I am using the simple .htaccess and .htpasswd to require a username & password to enter my members area. I would like a log of when someone logs in. Just their username, date, and time. It can just add this info to the end of a txt file. Is there a way to include the [...]
Okay so I am making my own website on Tripod.Lycos.co.uk. And I want to put .htaccess password protection on it. But before I can do that I have to know the /full/parth/to/.htpasswd, they said that the AuthUserFile "should be changed to reflect the full server path to the .htpasswd file"
Does anyone know what this would [...]
Typing any www.domainname.com/robots.txt shows the contents of this file. How can I prevent people from viewing this while still allowing search engines access? I know htaccess and htpasswd files can’t be viewed in plain site like this.
You can’t. Not properly anyway.
You can try blocking individual WEB BROWSERS based on the agent string, but it’s not [...]
Professional websites as in www.ebay.com or www.gmail.com.
I’m not sure if they are using .htaccess and .htpasswd to do it.
what platform are you using? vs 2008 (.net 3.5) has a built in wizard that does this automatically. it is pretty sweet.
I have found alot of classes that can ‘read’ the .htaccess and .htpasswd file, and also classes that create and manipulate the files; but is there anyway we can get the ‘username’ when someone logs in from the default login panel the .htaccess provides? Thanks alot if some one can help.
Yes. See: http://www.php.net/manual/en/reserved.variables.php and look [...]
I have found alot of classes that can ‘read’ the .htaccess and .htpasswd file, and also classes that create and manipulate the files; but is there anyway we can get the ‘username’ when someone logs in from the default login panel the .htaccess provides? Thanks alot if some one can help.
Yes. See: http://www.php.net/manual/en/reserved.variables.php and look [...]