Re: Access control with source IP addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx> -> <dmaurand@xxxxxxxxxxxxxxxx>, Message-ID: <546d150072445_58373f985f65131437351@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, 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@xxxxxxxxxxxxxxxx>, 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@xxxxxxxxxxxxxxxx>, 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@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


--
Curtis Maurand
curtis@xxxxxxxxxxx
207-252-7748

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux