You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Curtis Maurand <cu...@maurand.com> on 2014/11/21 14:28:20 UTC

Re: [users@httpd] Access control with source IP addresses [IGNORE]

Sorry folks. That was wrong delivery.

On 11/21/2014 8:24 AM, Curtis Maurand wrote:
> There was also this one, but it might be the same one.  Nothing on 
> "Zopim."
>
> Nov 19 17:09:08 canon amavis[20651]: (20651-10) Passed CLEAN, 
> [204.93.213.119] [204.93.213.119] <in...@concreteplusnh.com> -> 
> <dm...@davidmaurand.com>, Message-ID: 
> <54...@jobs10.chi.shopify.com.mail>, 
> mail_id: XIo4jDcagTcH, Hits: 1.801, size: 8200, queued_as: 85323C6189, 
> dkim_id=@shopify.com, 1623 ms
> Nov 19 17:09:08 canon postfix/smtp[21193]: C2BFEC60C1: 
> to=<dm...@davidmaurand.com>, relay=127.0.0.1[127.0.0.1]:10024, 
> delay=3, delays=1.4/0/0.01/1.6, dsn=2.0.0, status=sent (250 2.0.0 from 
> MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 85323C6189)
> Nov 19 17:09:10 canon postfix/pipe[21212]: 85323C6189: 
> to=<dm...@davidmaurand.com>, relay=dbmail-deliver, delay=2, 
> delays=0.02/0.01/0/1.9, dsn=2.0.0, status=sent (delivered via 
> dbmail-deliver service)
> Nov 19 17:09:10 canon postfix/qmgr[13664]: 85323C6189: removed
>
> On 11/21/2014 6:48 AM, Rainer M. Canavan wrote:
>> On Nov 21, 2014, at 08:48 , Bu Xiaobing<bu...@ewellsoft.com>  wrote:
>>
>>> Hi All,
>>>
>>> I want to do the httpd URL access control through visitors' IP addresses as the following :
>>>
>>> all source IP address can visit  ^/action.php?login
>>> and only specified IP addresses can visit ^/action.php?manage
>>>
>>> Anyone can give me some advises?
>> You've probably noticed that the usual mechanisms like Directory, Location and
>> LocationMatch don't evaluate the query string. You'll probably have to
>> use a RewriteRule preceded by
>>
>> RewriteCond %{QUERY_STRING} manage
>>
>> or something similar, in combination with
>>
>> <Location /action.php>
>>   Allow From IP.IP.IP.IP
>> </Location
>>
>> rainer
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail:users-help@httpd.apache.org
>>
>
> -- 
> Curtis Maurand
> curtis@maurand.com <ma...@maurand.com>
> 207-252-7748

-- 
Curtis Maurand
curtis@maurand.com <ma...@maurand.com>
207-252-7748