Basic Settings
Access Numbers & Connection Configuration
Yes. If your site is on our Unix server, you may password protect a directory with basic authentication using .htaccess
files. .htaccess
protected directories require logins and passwords for web access.
Back to the Index Back to the Top
To password protected a directory on your site, you need to add .htaccess
and .htpasswd
files to your web site. The .htaccess
file resides in the directory that you would like to protect and the .htpasswd
file contains authorized logins and passwords. You are also able to restrict access to specific IP addresses or to commands such as get
. ( Please see the reference link below for further details.) Here is how to create the .htaccess
and .htpasswd
files:
Create a file in plain text on your local computer called .htaccess with the following template:
AuthUserFile /docs/Vendors/webmasterlogin/.htpasswd AuthGroupFile /dev/null AuthName "title" AuthType Basic <Limit GET POST> require valid-user </Limit>
Replace webmasterlogin with your appropriate login name, and title with a title appropriate to what you are password protecting. The title will appear in the window that pops up asking for a username and password.
You may specify any path for AuthUserFile /docs/Vendors/webmasterlogin/.htpasswd
, preferably outside your web root (eg. /docs/Vendors/webmasterlogin/.htpasswd
). You can create different password files for different directories or multiple password protected directories using the same password file.
FTP to your web site and upload the .htaccess
file to the directory you want to protect.
Email web-admin@seanet.com and specify where the .htpasswd
file is to be located and which logins and passwords it should contain. Seanet's web master will create and upload the .htpasswd
file for you.
For a more detailed explanation on setting up basic authentication with .htaccess
and .htpasswd
files, please see Apache's web site: Authentication, Authorization, and Access Control .
Back to the Index Back to the Top
Once you log into your account with your FTP client, you will be brought to what is called your home directory or folder. The folder will be named as the webmasterlogin
for your domain. The path to this directory is /docs/Vendors/webmasterlogin
. When uploading files to your web site you should store all files in the html
directory. Your homepage (the first page that appears on your Web site) must be named index.html
or index.htm
. This is case sensitive, so it must be all lower case.