.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

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -