I want to allow an IP range in .htaccess -
i want allow ip addresses between 145.050.039.008 , 145.050.039.017 inclusive
for example (but doesn't work):
allow 145.050.039.008 145.050.039.017 or:
allow 145.050.039.008,145.050.039.017 or:
allow 145.050.039.008/017 ?
thanks, jelmar
allow 145.050.039.008 145.050.039.017 check here details.
(late) edit:
my bad, previous answer never worked, @ time answered without understanding problem.
option #1: define ip
here's way it:
allow 145.50.39.8 allow 145.50.39.9 allow 145.50.39.10 allow 145.50.39.11 allow 145.50.39.12 allow 145.50.39.13 allow 145.50.39.14 allow 145.50.39.15 allow 145.50.39.16 allow 145.50.39.17 option #2: use partial ip
if want more generic, can use partial ip:
allow 145.50.39 but allow ip 145.50.39.0 145.50.39.255.
option #3: use netmask or cidr
to closer, can use netmask or cidr:
allow 145.50.39.0/255.255.255.224 or
allow 145.50.39.0/27 this allow ip 145.50.39.0 145.50.39.31.
Comments
Post a Comment