Gentoo Archives: gentoo-user

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:52:07
Message-Id: 2442533.7s5MMGUR32@lenovo.localdomain
In Reply to: Re: [gentoo-user] apache htaccess - block IP range by thelma@sys-concept.com
1 Please do not top-post in this mailing list.
2
3 On Tuesday, 17 March 2020 22:41:26 GMT thelma@×××××××××××.com wrote:
4 > I have tried (doesn't work)
5 >
6 > <Limit GET POST>
7 > order allow,deny
8 > allow from all
9 >
10 > # block spamers:
11 > deny from huawei.com
12 > </Limit>
13 >
14 > I'm still getting over 800-entires from: 114.119.128.0 - 114.119.191.255
15
16 I just noticed the address is not a /24 but a /18 address space! My mistake,
17 the correct IP notation therefore becomes:
18
19 114.119.128.0/18
20
21 Or;
22
23 114.119.128.0/255.255.192.0
24
25 Don't forget to reload the apache config, or restart the server.
26
27 If changes to the .htaccess do not work, this may mean the hosting company is
28 overriding such directives with their configuration - you'll need to talk to
29 them.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] apache htaccess - block IP range thelma@×××××××××××.com