Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o, Michael <confabulate@××××××××.com>
Subject: Re: [gentoo-user] apache htaccess - block IP range
Date: Tue, 17 Mar 2020 23:14:00
Message-Id: cbe875f5-7218-e68c-2e20-24aef2eb85d0@sys-concept.com
In Reply to: Re: [gentoo-user] apache htaccess - block IP range by Michael
1 On 03/17/2020 04:51 PM, Michael wrote:
2 > Please do not top-post in this mailing list.
3 >
4 > On Tuesday, 17 March 2020 22:41:26 GMT thelma@×××××××××××.com wrote:
5 >> I have tried (doesn't work)
6 >>
7 >> <Limit GET POST>
8 >> order allow,deny
9 >> allow from all
10 >>
11 >> # block spamers:
12 >> deny from huawei.com
13 >> </Limit>
14 >>
15 >> I'm still getting over 800-entires from: 114.119.128.0 - 114.119.191.255
16 >
17 > I just noticed the address is not a /24 but a /18 address space! My mistake,
18 > the correct IP notation therefore becomes:
19 >
20 > 114.119.128.0/18
21 >
22 > Or;
23 >
24 > 114.119.128.0/255.255.192.0
25 >
26 > Don't forget to reload the apache config, or restart the server.
27 >
28 > If changes to the .htaccess do not work, this may mean the hosting company is
29 > overriding such directives with their configuration - you'll need to talk to
30 > them.
31
32 Yes, it worked the entries are dropping, from 800+ to 44 now
33 Thank you!