.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 - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -