HTML
To limit access to a webpage:
Create a file called .htaccess with the following contents:
AuthUserFile /home/xyz/username/.www/.htpasswd
AuthType Basic
AuthGroupFile /dev/null
AuthName "Some String in Quotes"
<Limit GET POST>
order allow,deny
allow from all
require valid-user
</Limit>
To create a new password file:
htpasswd -c .htpasswd user1
To add a user:
Some things in HTML are case-sensitive.
For example: (to make a non-breaking space).
<font color="00CC00">Green</font>
Finished Songs
| Song
| Key
| Duration
| Time
|
|---|
| "Blah blah blah!" | G Major | 4:15 | 4/4
|
|---|
| "Return of Blah" | E Major | 4:35 | 2/4
|
|---|
L...
Preformatted text: use <pre>
Typical .htaccess file:
AddType text/html .shtml
AddHandler server-parsed .shtml .html
DirectoryIndex index.shtml index.html
To determine the size (the number of pixels) for png image file on mac:
sips -g pixelWidth mail.png
Back to Resources