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