On 9 juin 06, at 15:18, Joshua Slive wrote:
I could probably come up with a way to do this with mod_setenvif, but
when your config crosses a certain level of complexity, it is usually
easier to just bite the bullet and pull out mod_rewrite. It has a
much more flexible config syntax and therefor
On 9 juin 06, at 14:32, Joshua Slive wrote:
# will not work...
BrowserMatch !Firefox not_fx
There is no direct support for this, but you can often reverse the
logic and cause the regex to unset and env variable instead and then
use the lack of the variable as a trigger for whatever you were tr
Hello,
I'm looking for a way to create SetEnvIf/BrowserMatch rules that use
"negative" regex. Usually the "!" is used, but after trying many
things, I can't find any working solution.
How can I do for example to define an env. variable for client _not_
using Firefox ?
# will not work...
B
On 8 juin 06, at 15:52, Joshua Slive wrote:
Close. Try:
SetEnvIf Request_URI .* GoAway=1
BrowserMatch .+ !GoAway
SetEnvIf Referer .+ !GoAway
Deny from env=GoAway
Perfect, it's working great :)
I use a SetEnvIf that always matches rather than the SetEnv because
the latter occurs in a differ
Hi
On 8 juin 06, at 15:21, Joshua Slive wrote:
Deny from env(BlockBrowser AND BlockReferer)
Deny from env=BlockCountry
BrowserMatch "^$" BlockBrowser=1
SetEnvIf Referer "^$" BlockReferer=1
SetEnvIf BlockBrowser ^1$ GoAway
SetEnvIf BlockReferer ^1$ G
Hello,
I'm trying to set up a deny rule that must be triggered only when 2
conditions are both true :
BrowserMatch "^$" BlockBrowser
SetEnvIf Referer "^$" BlockReferer
SetEnvIf GEOIP_COUNTRY_CODE XX BlockCountry
Deny from env(BlockBrowser AND BlockRefe