34.23.12
allow Melanie from all
We have to put them in config.inc.php (in the related server-specific section)
as follows:
$cfg['Servers'][$i]['AllowDeny']['rules'] =
array('allow Marc from 45.34.23.12',
'allow Melanie from all');
When defining a single rule or multiple rules, a PHP array is used, and we must
follow its syntax enclosing each complete rule within single quotes and separating
each rule from the next with a comma. Thus, if we have only one rule, we must still
use an array to specify it like this:
$cfg['Servers'][$i]['AllowDeny']['rules'] =
array('allow Marc from 45.34.23.12');
The next parameter explains the order in which rules are interpreted.
Order of Interpretation for Rules
By default, this parameter is empty:
$cfg['Servers'][$i]['AllowDeny']['order'] = '';
This means that no IP-based verification is made.
Suppose we want to allow access by default, denying access only to some username/
IP pairs. We should use:
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
Installing phpMyAdmin
[ 40 ]
In this case, all deny rules will be applied first, followed by allow rules. If a case is
not mentioned in the rules, access is granted. Being more restrictive, we'd want to
deny by default. We can use:
$cfg['Servers'][$i]['AllowDeny']['order'] = 'allow,deny';
This time, all allow rules are applied first, followed by deny rules.
Pages:
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66