Re: [EMAIL PROTECTED] negative regex in SetEnvIf

2006-06-09 Thread Proniewski Patrick
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

Re: [EMAIL PROTECTED] negative regex in SetEnvIf

2006-06-09 Thread Proniewski Patrick
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

[EMAIL PROTECTED] negative regex in SetEnvIf

2006-06-09 Thread Proniewski Patrick
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

Re: [EMAIL PROTECTED] multicriteria "Deny from env" rule

2006-06-08 Thread Proniewski Patrick
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

Re: [EMAIL PROTECTED] multicriteria "Deny from env" rule

2006-06-08 Thread Proniewski Patrick
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

[EMAIL PROTECTED] multicriteria "Deny from env" rule

2006-06-08 Thread Proniewski Patrick
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