From: | Michael <confabulate@××××××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] apache htaccess - block IP range | ||
Date: | Tue, 17 Mar 2020 22:01:09 | ||
Message-Id: | 3034467.oiGErgHkdL@lenovo.localdomain | ||
In Reply to: | Re: [gentoo-user] apache htaccess - block IP range by thelma@sys-concept.com |
1 | On Tuesday, 17 March 2020 21:56:29 GMT thelma@×××××××××××.com wrote: |
2 | > Will it work: |
3 | > deny from 114.119.128.0/114.119.191.255 |
4 | > |
5 | > Thelma |
6 | |
7 | It is better to use this syntax: |
8 | |
9 | <RequireAll> |
10 | Require all granted |
11 | Require not ip XX.XXX.XX.XXX |
12 | </RequireAll> |
13 | |
14 | |
15 | So your example address space becomes: |
16 | |
17 | Require not ip 114.119.128 |
18 | |
19 | Or; |
20 | |
21 | Require not ip 114.119.128.0/24 |
22 | |
23 | Or; |
24 | |
25 | Require not ip 114.119.128.0/255.255.255.0 |
26 | |
27 | |
28 | Look in Google for webpages providing geo-ip blocking advice, but China is |
29 | vast and so is their ability to buy/change more IP addresses per day. So this |
30 | is a moving beast. |
31 | |
32 | HTH. |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-user] apache htaccess - block IP range | thelma@×××××××××××.com |
Re: [gentoo-user] apache htaccess - block IP range | thelma@×××××××××××.com |
Re: [gentoo-user] apache htaccess - block IP range | thelma@×××××××××××.com |