如何禁用的mod

编程入门 行业动态 更新时间:2024-10-24 18:17:49
本文介绍了如何禁用的mod_security在.htaccess文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们如何禁用的mod_security 通过使用的.htaccess Apache服务器上的文件?

How can we disable mod_security by using .htaccess file on Apache server?

我是用我的个人域名字preSS和发布一个帖子里面的内容有一定的code块,并根据我的托管服务提供商所说的的mod_security 给一个错误,我的IP已经进入,因为的mod_security 防火墙。

I am using WordPress on my personal domain and posting a post which content has some code block and as per my hosting provider said mod_security gives an error and my IP has gone into firewall because of mod_security.

所以我想禁用的mod_security 通过使用的.htaccess 文件。

So I want to disable mod_security by using .htaccess file.

推荐答案

这是可能做到这一点,但最有可能你的主机实施的mod_security 的一个原因。要确保他们同意你禁用它为自己的网站。

It is possible to do this, but most likely your host implemented mod_security for a reason. Be sure they approve of you disabling it for your own site.

这是说,这应该这样做;

That said, this should do it;

<IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>

更多推荐

如何禁用的mod

本文发布于:2023-11-01 12:24:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549324.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:mod

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!