3

有没有办法知道 mod_security 是否在使用 PHP 的 apache 服务器上被激活?(没有卷曲)

4

1 回答 1

2

您可以尝试的一件事是使用 apache_get_modules 来发现 Apache 当前启用的模块。当然,这种方法只适用于 Apache 服务器,不适用于其他流行的 HTTP 服务器。

var_dump (in_array ('mod_security', apache_get_modules ()));
于 2012-08-09T06:14:02.673 回答