Re: Conditional Blocks based upon Remote IP Address

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

 



Thanks for the detailed options, awesome.  The #2 option, is that coming 
in an upcoming release or is that 3.0?  Any idea when that might be 
available?

Nick Kew wrote:
Clint Priest wrote:
Is there any way to have some directives apply only to certain remote ip addresses?  I would like to enable a few things only for a certain set of IP addresses.

Answer 1 (simple): no.

Answer 2 (FWIW): yes, but not in any stable release.  In the trunk
version of apache, you can use an
<If "... evaluate your _expression_ ...">
block to do that.

Answer 3: (ugly, and more likely to lead to madness than a solution
for most): use mod_rewrite.  This is an esercise in programming,
with a horrible programming language, but you can do it with
RewriteCond as "if" and RewriteRule as "goto".  That leaves you to
manage different URL target spaces with different configurations.

Answer 4: (probably easier than 3) - Write a module, or hack it in
your choice of scripting language.

Answer 5: (another hack, but simpler than 3 if there are just two
cases) - Use Allow/Deny to select IP addresses, and then use a
script or .asis ErrorDocument to return a non-error response when
the request is supposed to be denied.


--
Clint Priest
cpriest@xxxxxxxxxxxxxxxxxxxxx
8127 Mesa Drive
Suite B206-319
Austin, TX 78759
Cell: 415-724-6213
YIM/AIM: pkp9774


[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