Lis ça dans la doc :
RewriteCond :
The RewriteCond directive defines a rule condition. Precede a RewriteRule directive with one or more RewriteCond directives. The following rewriting rule is only used if its pattern matches the current state of the URI and if these additional conditions apply too.
[...]
* Server-Variables: These are variables of the form
%{ NAME_OF_VARIABLE }
where NAME_OF_VARIABLE can be a string taken from the following list:
HTTP headers:
RewriteCond %{REMOTE_HOST} ^host1.* [OR]
RewriteCond %{REMOTE_HOST} ^host2.* [OR]
RewriteCond %{REMOTE_HOST} ^host3.*
RewriteRule ...some special stuff for any of these hosts...
Réfléchis 2 secondes sur cette exemple. Imagines que REMOTE_HOST est remplacé par HTTP_FORWARDED, etc... Pour RewriteRule met un "RewriteRule - http://linuxfr.org/denied_proxy_anon.html(...) [R]" .
[^] # Re: C'est quoi ce BORDEL
Posté par 123neveu . En réponse à la dépêche Système de notation sur LinuxFr. Évalué à 0.
RewriteCond :
The RewriteCond directive defines a rule condition. Precede a RewriteRule directive with one or more RewriteCond directives. The following rewriting rule is only used if its pattern matches the current state of the URI and if these additional conditions apply too.
[...]
* Server-Variables: These are variables of the form
%{ NAME_OF_VARIABLE }
where NAME_OF_VARIABLE can be a string taken from the following list:
HTTP headers:
HTTP_USER_AGENT
HTTP_REFERER
HTTP_COOKIE
HTTP_FORWARDED
HTTP_HOST
HTTP_PROXY_CONNECTION
HTTP_ACCEPT
connection & request:
REMOTE_ADDR
[...]
Exemple de la doc :
RewriteCond %{REMOTE_HOST} ^host1.* [OR]
RewriteCond %{REMOTE_HOST} ^host2.* [OR]
RewriteCond %{REMOTE_HOST} ^host3.*
RewriteRule ...some special stuff for any of these hosts...
Réfléchis 2 secondes sur cette exemple. Imagines que REMOTE_HOST est remplacé par HTTP_FORWARDED, etc... Pour RewriteRule met un "RewriteRule - http://linuxfr.org/denied_proxy_anon.html(...) [R]" .