httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gregory duchesnes <greg...@icilalune.com>
Subject Re: [users@httpd] SetEnvIf only if 2 regex match?
Date Wed, 02 Nov 2005 15:02:41 GMT
thanks for your help but this is the exact opposite of what i wan't to do.

Here you accept anyone from 192.168.0.2 except Mozilla.
I wan't to allow only Mozilla from this IP, and the problem is quite 
different, since i need to deny everyone except mozilla...

Joshua Slive a écrit :

>On 11/2/05, gregory duchesnes <gregory@icilalune.com> wrote:
>  
>
>>SetEnvIf Remote_Addr ^192\.168\.0\.2$ welcome
>>BrowserMatch !"^Mozilla" !welcome
>>    
>>
>
>You can't negate a regex in that way.
>
>Try this instead:
>SetEnvIf Remote_Addr ^192\.168\.0\.2$ welcome
>SetEnvIf User-Agent "^Mozilla" badbrowser=1
>SetEnvIf badbrowser 1 !welcome
>
>  
>
>>Order Allow,Deny
>>Allow from env=welcome
>>    
>>
>
>Joshua.
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>  
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message