Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added Kiriwrite Documentation for the language English (British).
[kiriwrite/.git] / Documentation / English (British) / user-chapter4-securing.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">\r
2 <html>\r
3         <head>\r
4                 <link href="style.css" REL="stylesheet" TYPE="text/css" MEDIA="screen">\r
5                 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">\r
6                 <title>Kiriwrite Documentation - User Documentation - 4.1: Securing your Kiriwrite installation</title>\r
7         </head>\r
8         <body>\r
9                 <div class="menubarback">\r
10                         <div class="menubar">\r
11                                 <span class="apptitle">Kiriwrite</span>\r
12                                 <a href="index.html">Index</a> | <a href="user.html">User \r
13 Documentation</a> | <a href="tutorial.html">Tutorial Documentation</a> | \r
14 <a href="developer.html">Developer Documentation</a>\r
15                         </div>\r
16                 </div>\r
17                 <div class="pageinformation">\r
18                         <span class="pagetitle">4.1 Securing your Kiriwrite installation</span><br><br>\r
19 \r
20 This section is about securing your Kiriwrite installation.<br><br>\r
21 \r
22 <span class="heading">4.1.1 HTTP Authentication</span><br><br>\r
23 \r
24 HTTP Authentication allows users who only know the correct username and password to access pages that are not available to the public. HTTP Authentication is done by the following if you're using Apache 1.3.x/2.x from a command console:<br><br>\r
25 \r
26 <div class="code">\r
27     htpasswd -c .htpasswd username\r
28 </div>\r
29 \r
30 <br>\r
31 \r
32 The -c switch specifies that a password file should be created called .htpasswd (although can be called something else), while username is the username of the login (which can be something else other than username), after pressing enter a password prompt then appears asking for a password to be entered the same twice.<br><br>\r
33 \r
34 After the .htpasswd file is created, the file should be copied to a location that cannot be accessed from a URI resource (such as outside the htdocs/web documents directory) and then create a .htaccess file (if it doesn't exist) pointing to the password file with the following directives as an example.<br><br>\r
35 \r
36 <div class="code">\r
37     AuthUserFile /home/www/website/private/.htpasswd<br>\r
38     AuthType Digest<br>\r
39     AuthName “Private Area”\r
40 </div>\r
41 \r
42 <br>\r
43 \r
44 The AuthUserFile directive should point to the htpasswd file that was created earlier on. The AuthType directive specifies the authentication type to use and AuthName specifies the name of the area to appear when entering the username and password.<br><br>\r
45 \r
46 <span class="heading">4.1.2 IP Address Filtering</span><br><br>\r
47 \r
48 IP Address filtering allows certain IP addresses or hosts to be blocked from access and allowing everyone else access or blocking everyone from access and allowing certain IP addresses or hosts in. Typically when using Kiriwrite, the best method would be the white list method where everyone is blocked from access and only certain IP addresses or hosts can be allowed access.<br><br>\r
49 \r
50 To setup a white list, open the .htaccess file and insert the following (if it already exists) if you're using Apache 1.3/2.x:<br><br>\r
51 \r
52 <div class="code">\r
53     Order Deny, Allow<br>\r
54     Deny from all<br>\r
55     Allow from 127.0.0.1\r
56 </div>\r
57 \r
58 <br>\r
59 \r
60 This example denies everyone and then only allows 127.0.0.1 (which is the computer the web server is running from which tends to be the machine you're using on a personal installation). Multiple Allow commands can be entered which allows multiple hosts.<br><br>\r
61 \r
62 More information on using Allow and Deny can be found in the Apache 1.3/2.x Documentation.\r
63                 </div>\r
64         </body>\r
65 </html>\r
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy