httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curtis Maurand <cur...@maurand.com>
Subject Re: [users@httpd] Access control with source IP addresses
Date Fri, 21 Nov 2014 13:24:55 GMT
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] <info@concreteplusnh.com> -> 
<dmaurand@davidmaurand.com>, Message-ID: 
<546d150072445_58373f985f65131437351@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=<dmaurand@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=<dmaurand@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 <buxiaobing@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 <mailto:curtis@maurand.com>
207-252-7748

Mime
View raw message