Subversion Repositories wimsdev

Rev

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