首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Wordfence:检测到可能不安全的操作(http响应代码403)

Wordfence:检测到可能不安全的操作(http响应代码403)
EN

Stack Overflow用户
提问于 2022-05-21 03:14:16
回答 2查看 313关注 0票数 -1

我已经实现了一个使用WordPress编程问题的问答论坛。

Wordfence插件安装在我的WordPress系统上。

文章的内容有带有语法高亮笔的编程代码。

AJAX请求插入ِ数据。

在posts中使用html语法时会发生以下错误:

代码语言:javascript
复制
A potentially unsafe operation has been detected in your request to this site
Your access to this service has been limited. (HTTP response code 403)

If you think you have been blocked in error, contact the owner of this site for assistance.

Block Technical Data
Block Reason:   A potentially unsafe operation has been detected in your request to this site

我要插入的代码是:

代码语言:javascript
复制
function redirect($url)
{
    @header('location: ' . $url);
    exit('<meta http-equiv="Refresh" content="0;url='. $url .'">');
}

如果post不是以ajax的形式插入,这个问题会得到解决吗?

,解决方案是什么?

EN

回答 2

Stack Overflow用户

发布于 2022-05-21 03:43:10

Wordfence就像诺顿,会阻止/杀死某些东西。尝试使用? page_id =././etc/passwd访问站点,即使page_id不是有效的参数,它也会触发wordfence。

卸载字栏

票数 -1
EN

Stack Overflow用户

发布于 2022-05-21 07:15:54

请尝试使用这样的wordpress函数:

代码语言:javascript
复制
function redirect($url)
{
    wp_redirect($url, 301);
    exit;
}
票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72326396

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档