I'm still using apache 2.2
So I think it should be:
deny from 114.119.128.0/24
With the:
<RequireAll>
Require all granted
Require not ip 114.119.128.0/24
</RequireAll>
I couldn't even access my own webpage from localhost.
Thelma
On 03/17/2020 04:00 PM, Michael wrote:
> On Tuesday, 17 March 2020 21:56:29 GMT [email protected] wrote:
>> Will it work:
>> deny from 114.119.128.0/114.119.191.255
>>
>> Thelma
>
> It is better to use this syntax:
>
> <RequireAll>
> Require all granted
> Require not ip XX.XXX.XX.XXX
> </RequireAll>
>
>
> So your example address space becomes:
>
> Require not ip 114.119.128
>
> Or;
>
> Require not ip 114.119.128.0/24
>
> Or;
>
> Require not ip 114.119.128.0/255.255.255.0
>
>
> Look in Google for webpages providing geo-ip blocking advice, but China is
> vast and so is their ability to buy/change more IP addresses per day. So
> this
> is a moving beast.
>
> HTH.
>