Subversion Repositories wimsdev

Rev

Rev 4091 | Rev 5903 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
 
196 bpr 2
 
20 reyssat 3
<center>Access restriction definition</center>
4
<p>
5
 
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.
8
Lines starting with a `<tt>#</tt>' are comments.
9
<p>
10
Each line is of the format <tt>[access conditions]:[host conditions]</tt>.
11
<p>
228 reyssat 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
4091 bpr 14
<tt class="wims_code_words">non</tt> to reverse its logical meaning.
2461 bpr 15
<p>
16
$table_header
3953 bpr 17
$table_tr<th>word</th><th>meaning</th></tr>
4091 bpr 18
$table_tr<td><tt class="wims_code_words">class</tt></td><td>The connection is within a virtual class.</td></tr>
19
$table_tr<td><tt class="wims_code_words">com</tt></td><td>The requested module is under the com/ subtree.</td></tr>
20
$table_tr<td><tt class="wims_code_words">document</tt></td><td>The requested module is a document. (not yet available)</td></tr>
21
$table_tr<td><tt class="wims_code_words">exercise</tt></td><td>The requested module is an exercise.</td></tr>
22
$table_tr<td><tt class="wims_code_words">hint</tt></td><td>The request is for hint.</td></tr>
23
$table_tr<td><tt class="wims_code_words">local</tt></td><td>The requested module is under the local/ subtree.</td></tr>
24
$table_tr<td><tt class="wims_code_words">recreation</tt></td><td>The requested module is a recreation.</td></tr>
25
$table_tr<td><tt class="wims_code_words">tool</tt></td><td>The requested module is a tool.</td></tr>
2461 bpr 26
$table_end
20 reyssat 27
 
28
The host conditions can be any host definition, eventually plus time
29
definition as for any worksheets. If the first character of the host
4091 bpr 30
conditions is <tt class="wims_code_words">!</tt>, then the host/time meeting the conditions will
20 reyssat 31
be refused access (for the resources meeting the access conditions).
32
Otherwise they will be granted access, and subsequent lines in the
33
restriction definition will be ignored for those meeting the conditions.
34
 
5755 bpr 35
<p><hr/></p>
20 reyssat 36
 
37
!read help/hosts.phtml
38
 
5755 bpr 39
<p><hr/></p>
20 reyssat 40
 
41
Some starting examples.
42
<p>
43
# Disallow the use of tools from 134.59.102.*
5755 bpr 44
<br/><tt class="wims_code_words">tool:! 134.59.102.</tt>
20 reyssat 45
<p>
46
# Disallow calls for hint from localhost.
5755 bpr 47
<br/><tt class="wims_code_words">hint:! 127.0.0.1</tt>
20 reyssat 48
<p>
49
# People from wanadoo.fr cannot have anonymous accesses for recreations.
5755 bpr 50
<br/><tt class="wims_code_words">recreation nonclass:! .wanadoo.fr</tt>
20 reyssat 51
<p>
52
# Work in virtual classes prohibited from localhost on New Year's Day of 2004.
5755 bpr 53
<br/><tt class="wims_code_words">class: ! 127.0.0.1 >20040101.00:00 <20040101.23:59</tt>
20 reyssat 54
<p>
55