Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法知道 mod_security 是否在使用 PHP 的 apache 服务器上被激活?(没有卷曲)
您可以尝试的一件事是使用 apache_get_modules 来发现 Apache 当前启用的模块。当然,这种方法只适用于 Apache 服务器,不适用于其他流行的 HTTP 服务器。
var_dump (in_array ('mod_security', apache_get_modules ()));