Subversion Repositories wimsdev

Rev

Rev 5903 | Rev 6249 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5903 Rev 5947
Line 4... Line 4...
4
<p>
4
<p>
5
 
5
 
6
This is multi-line data, executed line by line in their list orders. The
6
This is multi-line data, executed line by line in their list orders. The
7
restrictions only affect resource modules, but not administration modules.
7
restrictions only affect resource modules, but not administration modules.
8
Lines starting with a `<span class="tt">#</span>' are comments.
8
Lines starting with a `<span class="tt">#</span>' are comments.
9
<p>
9
</p><p>
10
Each line is of the format <span class="tt">[access conditions]:[host conditions]</span>.
10
Each line is of the format <span class="tt">[access conditions]:[host conditions]</span>.
11
<p>
11
</p><p>
12
The access conditions is a list of words, which will be ANDed. The available
12
The access conditions is a list of words, which will be ANDed. The available
13
words are listed in the following table. Each word can be prefixed with
13
words are listed in the following table. Each word can be prefixed with
14
<span class="tt wims_code_words">non</span> to reverse its logical meaning.
14
<span class="tt wims_code_words">non</span> to reverse its logical meaning.
15
<p>
15
</p>
16
$table_header
16
$table_header
17
$table_tr<th>word</th><th>meaning</th></tr>
17
$table_tr<th>word</th><th>meaning</th></tr>
18
$table_tr<td><span class="tt wims_code_words">class</span></td><td>The connection is within a virtual class.</td></tr>
18
$table_tr<td><span class="tt wims_code_words">class</span></td><td>The connection is within a virtual class.</td></tr>
19
$table_tr<td><span class="tt wims_code_words">com</span></td><td>The requested module is under the com/ subtree.</td></tr>
19
$table_tr<td><span class="tt wims_code_words">com</span></td><td>The requested module is under the com/ subtree.</td></tr>
20
$table_tr<td><span class="tt wims_code_words">document</span></td><td>The requested module is a document. (not yet available)</td></tr>
20
$table_tr<td><span class="tt wims_code_words">document</span></td><td>The requested module is a document. (not yet available)</td></tr>
Line 29... Line 29...
29
definition as for any worksheets. If the first character of the host
29
definition as for any worksheets. If the first character of the host
30
conditions is <span class="tt wims_code_words">!</span>, then the host/time meeting the conditions will
30
conditions is <span class="tt wims_code_words">!</span>, then the host/time meeting the conditions will
31
be refused access (for the resources meeting the access conditions).
31
be refused access (for the resources meeting the access conditions).
32
Otherwise they will be granted access, and subsequent lines in the
32
Otherwise they will be granted access, and subsequent lines in the
33
restriction definition will be ignored for those meeting the conditions.
33
restriction definition will be ignored for those meeting the conditions.
34
 
34
 
35
<p><hr/></p>
35
<hr/>
36
 
36
 
37
!read help/hosts.phtml
37
!read help/hosts.phtml
38
 
38
 
39
<p><hr/></p>
39
<hr/>
40
 
40
 
41
Some starting examples.
41
Some starting examples.
42
<p>
42
<p>
43
# Disallow the use of tools from 134.59.102.*
43
# Disallow the use of tools from 134.59.102.*
44
<br/><span class="tt wims_code_words">tool:! 134.59.102.</span>
44
<br/><span class="tt wims_code_words">tool:! 134.59.102.</span>
45
<p>
45
</p><p>
46
# Disallow calls for hint from localhost.
46
# Disallow calls for hint from localhost.
47
<br/><span class="tt wims_code_words">hint:! 127.0.0.1</span>
47
<br/><span class="tt wims_code_words">hint:! 127.0.0.1</span>
48
<p>
48
</p><p>
49
# People from wanadoo.fr cannot have anonymous accesses for recreations.
49
# People from wanadoo.fr cannot have anonymous accesses for recreations.
50
<br/><span class="tt wims_code_words">recreation nonclass:! .wanadoo.fr</span>
50
<br/><span class="tt wims_code_words">recreation nonclass:! .wanadoo.fr</span>
51
<p>
51
</p><p>
52
# Work in virtual classes prohibited from localhost on New Year's Day of 2004.
52
# Work in virtual classes prohibited from localhost on New Year's Day of 2004.
53
<br/><tt class="wims_code_words">class: ! 127.0.0.1 >20040101.00:00 <20040101.23:59</tt>
53
<br/><span class="tt" class="wims_code_words">class: ! 127.0.0.1 >20040101.00:00 <20040101.23:59</span>
54
<p>
54
</p>
55
 
55