.htaccess - How to set rewrite cond apache by Ip range -
i have rewrite cond in .htaccess
rewritecond %{remote_addr} !^195.16.40.50
how set rewritecond ip range 192.168.0.0 192.168.32.255
this condition should match ip range:
rewritecond %{remote_addr} ^195\.168\.([0-9]|[1-2][0-9]|3[0-2])\.[0-9]+$
Comments
Post a Comment