Q:

how to give subnets for IP addresses in rewrite condition?

I want to give subnet for various IPs while writing rewritecond. So how should i give the subnet mask in the below rule. the IP is 218.104.51.160/29
RewriteCond %{HTTP:X-Forwarded-For} !^IP
RewriteRule ^  - [F,L]

A:

You can't. What you're trying to do makes no sense.

