如何通过 Ip 范围设置重写 cond apache
How to set rewrite cond apache by Ip range
我在 .htaccess 中有这个重写条件
RewriteCond %{REMOTE_ADDR} !^195.16.40.50
如何通过 ip 范围从 192.168.0.0 到 192.168.32.255 设置 RewriteCond
此条件应符合您的 ip 范围:
RewriteCond %{REMOTE_ADDR} ^195\.168\.([0-9]|[1-2][0-9]|3[0-2])\.[0-9]+$
我在 .htaccess 中有这个重写条件
RewriteCond %{REMOTE_ADDR} !^195.16.40.50
如何通过 ip 范围从 192.168.0.0 到 192.168.32.255 设置 RewriteCond
此条件应符合您的 ip 范围:
RewriteCond %{REMOTE_ADDR} ^195\.168\.([0-9]|[1-2][0-9]|3[0-2])\.[0-9]+$