wordpress - How to allow IPS from range in htaccess? -
i want users 213.241.*.* ips access blog admin section. when add specific ip of pc 213.241.34.24 works. when set range not work.
i have tried:
order deny,allow allow 213.241.0 deny
and:
order deny,allow allow 213.241.*.* deny
and
order deny,allow allow 213.241. deny
and also:
order deny,allow allow 213.241.0.0 213.241.255.255 deny
and:
order deny,allow allow 213.241.0.0 - 213.241.255.255 deny
and not work.
i figured out works:
order deny,allow allow 213.241.0.0/24 deny
but allows 213.241.0.* , therefore need put lots of rules work wish like:
order deny,allow allow 213.241.0.0/24 allow 213.241.1.0/24 allow 213.241.2.0/24 .... deny
is there easier way allow 213.241.. ips access blog admin section?
if using /24 cidr works you, why not /16?
order deny,allow allow 213.241.0.0/16 deny
Comments
Post a Comment