answersLogoWhite

0

You need to use the htpasswd command to create a password for a given username, then copy that into your .htpasswd file and reference it from your .htaccess file using something like this:

AuthName "My Protected Area"

AuthType Basic

AuthUserFile /location/of/.htpasswd

AuthGroupFile /dev/null

require valid-user

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you password protect a HTML webpage?

An HTML web page can not be password protected on its own. This is a task better suited for a language such as PHP when combined with HTML forms. You could ask the user for a password, and if it is correct create a cookie. When the user visits the site, you can redirect them elsewhere if they don't have the cookie.


How do you change your password on playlist?

I do not change your password. But you may change it on thier official webpage. spotify.com/password-reset


Content adviser password forgot?

The best way to recover a password is to either use a password recovery link or contact the webpage administrator.


Is there a password reset on the Vonage login webpage?

If you need to reset your Vonage login password, you will need to be familiar with the Navigation Bar. From the Home Screen, you will select Basic Setup and from there you may select Password.


How do you make a webpage your homepage?

The easiest way to set the default page (by directory) for your 'home page' is to edit the file (or add one if it is not already there) .htaccess -> this file name begins with a period Add this line to the top of the file and then save it. ---- DirectoryIndex filename.html


What is database all about?

HiDatabase like Mysql or access are for store dataExample anwsers.com have database who store all question and answer and user login and password with this when you login the webpage look if your information are correct and webpage get question and answer from database and display it


How to password protect a webpage?

It depends on how fancy you'll want to get and which web server you are using. HTTP supports a variety of user authentication protocols, with the most common one being "Basic" (which isn't particularly secure, unless you are using SSL) With the Apache web server, you would create an .htaccess file containing directives for authentication. Can be as simple as specifying a password or as complex as user groups and authentication based on the users IP number. For more than you ever wanted to know about password protecting web pages using Apache: http://httpd.apache.org/docs/2.2/howto/htaccess.html If you will be having a lot of members, or wish your users to be able to change and manage their own passwords, etc.. you need something called "user management". This is basically software that runs on your website that allows people to manage their own accounts. (often including subscriptions and password reminders) Here are a couple: Amember: http://amember.com GenieGate: http://www.geniegate.com/ (Full disclosure, the author owns GenieGate) To use these packages, your web server has to support the correct server side language. In the two examples listed, this means PHP. (Very common on todays hosts) other languages to consider are Perl or perhaps ruby. For full blown user management, you'll probably need a database as well, currently, mysql seems to be the most popular, but postgresql is also quite good. Look for sqlite to become more popular as well. If all you wish to do is password protect a directory so that only you and maybe a handful of others can access it, an .htaccess file is the way to go. (NOTE: make SURE your password file is stored OUTSIDE of web space, this is a very easy mistake)


How phishing is done?

Phishing is done by someone typacly a hacker, creating a fake webpage, identical to a real one which steals your password and gives it to them, granting them access to your account. Also phishing is highly illegal and there are several ways you can tell if its a real or fake webpage.


Where can one log on in his HSBC account?

A HSBC account can be accesses from the login page on the official HSBC webpage. To access an account, a login or username and a password is required.


How do you use the linksys wirelees-G without CD Drive?

type 192.168.1.1 into your browser window. a box should come up that has a username and password. Leave the username blank and type admin as the password. this should get you into a linksys webpage where you can set up your router.


What is a sentence for webpage?

The webpage appears to be down.He tried to contact the webpage administrator.How do I print this webpage?


Does a webpage end in HTML?

A web page need not have an HTML suffix. It can have HTM or SHTML instead. Or a server can be directed to send any file as HTML using either the server's configuration files or a .htaccess file in the same directory as the web page.