标签: mod-security

为 Nginx 安装 Mod_Security 无需重新编译

我已经完成了 LEMP 的所有设置。现在我想添加mod_security

我试图研究,但我能找到的只是关于如何重新编译 nginx 的说明。有没有办法添加 mod_security 而不需要重新编译?

我目前正在运行安装了 PPA 的 nginx/1.9.15,因为我在使用 HTTP/2。我没有编译 nginx 的经验,我不知道如果我重新编译我会破坏 nginx,因为我是从 PPA 得到的。

希望你能帮忙。

谢谢你。

security nginx web-server mod-security

2
推荐指数
1
解决办法
5807
查看次数

刚刚添加了 mod_security... 想要将一系列子目录列入白名单

我正在运行一个主机并且刚刚更新了 mod_security。它“破坏”了多个站点中的 CMS。我想将所有名为 CMS 的子目录列入白名单。我如何指定一个规则来做到这一点?

mod-security

1
推荐指数
1
解决办法
8308
查看次数

我如何知道我在服务器上拥有哪个版本的 mod 安全性?以及如何更新它?

我正在使用安装了 mod security 的 cpanel (11.25 Stable 46156)。我如何知道服务器中安装的 mod security 的版本?

如何手动更新 mod 安全性或使其自动更新?

mod-security

1
推荐指数
1
解决办法
2万
查看次数

错误:需要 libxml2(modsecurity)

我正在尝试mod_security从源代码安装。当我运行时出现./configure此错误:

configure: error: libxml2 is required
Run Code Online (Sandbox Code Playgroud)

在那个错误之后,我执行了这个命令:

yum install libxml2
Run Code Online (Sandbox Code Playgroud)

它正确安装了 libxml2。但是,我仍然从./configure. 我该如何解决这个错误?

mod-security

1
推荐指数
1
解决办法
3623
查看次数

阻止坏机器人

我找到了这个脚本,想知道这是否只是矫枉过正甚至值得使用?

只使用 mod_security 对我来说更好吗?

# Generated using http://solidshellsecurity.com services
# Begin block Bad-Robots from robots.txt
User-agent: asterias
Disallow:/
User-agent: BackDoorBot/1.0
Disallow:/
User-agent: Black Hole
Disallow:/
User-agent: BlowFish/1.0
Disallow:/
User-agent: BotALot
Disallow:/
User-agent: BuiltBotTough
Disallow:/
User-agent: Bullseye/1.0
Disallow:/
User-agent: BunnySlippers
Disallow:/
User-agent: Cegbfeieh
Disallow:/
User-agent: CheeseBot
Disallow:/
User-agent: CherryPicker
Disallow:/
User-agent: CherryPickerElite/1.0
Disallow:/
User-agent: CherryPickerSE/1.0
Disallow:/
User-agent: CopyRightCheck
Disallow:/
User-agent: cosmos
Disallow:/
User-agent: Crescent
Disallow:/
User-agent: Crescent Internet ToolPak HTTP OLE Control v.1.0
Disallow:/
User-agent: DittoSpyder
Disallow:/
User-agent: EmailCollector
Disallow:/
User-agent: …
Run Code Online (Sandbox Code Playgroud)

linux robots.txt .htaccess mod-security

1
推荐指数
1
解决办法
2542
查看次数

如何在没有任何错误的情况下禁用 ModSecurity

我在运行带有 apache Web 服务器的 Ubuntu 操作系统的 VPS 上启用了 Mod_Security。现在,我想禁用它,因为我设置了另一个防火墙来保护我的服务器。

我尝试以相反的顺序执行这些步骤(取出代码行并禁用模块),但是当我尝试重新启动 Apache 时,它​​一直说它无法重新启动。

我到处找,但我找不到如何禁用 WAF。

任何帮助,将不胜感激!

ubuntu php mod-security apache-2.2

1
推荐指数
1
解决办法
1万
查看次数

阻止php文件访问(modsecurity)

如何阻止对 PHP 文件的所有访问?文件名类似于sm6######.phpwhere####可以是任意随机数字。

我该如何使用mod_sec

mod-security apache-2.2

-1
推荐指数
1
解决办法
1419
查看次数