Re: Conditional Blocks based upon Remote IP Address

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

 



When the php module is installed into apache there is a php_flag and php_value directive available which could be used to set the value from within Apache, the only trick is to only have them take effect for certain remote ips. They would be:

php_flag display_errors On
php_flag display_startup_errors On


André Warnier wrote:
Clint Priest wrote:
Well more specifically with php its a security risk to enable display_errors and display_startup_errors and so I'm looking for a way to enable those features (before php executes and thus within apache) for only certain remote ip addresses (the developer boxes).

Do you know of a perl add-on that could do that? I'm not a perl programmer but if I found some good examples I could probably modify something to get it to work properly.

Being a perl-guy and not being a php-guy myself, I have no idea what are the conditions in which these errors occur, and what one would need to do to avoid them appearing. Basically, you seem to say that you can disable this feature for everyone as standard, and turn it on selectively for a few. How do you do that exactly ? (assuming you have not yet a "dynamic" way of doing it, how would you enable this statically ? Would that be, for example, by adding an Apache directive to the <Location> being accessed ?


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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