|
Deny from (range)
|
|||
---|---|---|---|
#18+
Как правильно заблокировать диапазон адресов через .htaccess? Есть нарушитель в следующем диапазоне: 80.254.102.0 - 80.254.106.255 Можно, разумеется, писать так: Код: plaintext 1. 2. 3. 4.
И еще один вопрос - можно ли сделать так, что при определенных условиях Deny возвращался определенный ErrorDocument 403? ... |
|||
:
Нравится:
Не нравится:
|
|||
09.07.2004, 14:06 |
|
Deny from (range)
|
|||
---|---|---|---|
#18+
цитата из мана по Apache: Apache A (partial) domain-name Example: Allow from apache.org Hosts whose names match, or end in, this string are allowed access. Only complete components are matched, so the above example will match foo.apache.org but it will not match fooapache.org. This configuration will cause the server to perform a reverse DNS lookup on the client IP address, regardless of the setting of the HostNameLookups directive. A full IP address Example: Allow from 10.1.2.3 An IP address of a host allowed access A partial IP address Example: Allow from 10.1 The first 1 to 3 bytes of an IP address, for subnet restriction. A network/netmask pair Example: Allow from 10.1.0.0/255.255.0.0 A network a.b.c.d, and a netmask w.x.y.z. For more fine-grained subnet restriction. (Apache 1.3 and later) network/nnn CIDR specification Example: Allow from 10.1.0.0/16 Similar to the previous case, except the netmask consists of nnn high-order 1 bits. (Apache 1.3 and later) для deny тоже самое ... |
|||
:
Нравится:
Не нравится:
|
|||
09.07.2004, 14:17 |
|
|
start [/forum/topic.php?fid=23&tid=1479608]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
153ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
46ms |
get tp. blocked users: |
2ms |
others: | 12ms |
total: | 262ms |
0 / 0 |