RewriteRule mod_rewrite

Hallo,

i want to deny access to proxy users (send a HTTP:VIA) who don`t send X_FORWARDED_FOR in the http header, too.

RewriteCond %{HTTP:VIA}
> Via for Proxy Checking

RewriteCond %{HTTP:X-FORWARDED-FOR}
> X-FORWARDED-FOR has to be there too; otherwise a deny

How to do that with mod_rewrite. Thanks.

 

 

 

 

Top