我已经实现了一个使用WordPress编程问题的问答论坛。
Wordfence插件安装在我的WordPress系统上。
文章的内容有带有语法高亮笔的编程代码。
AJAX请求插入ِ数据。
在posts中使用html语法时会发生以下错误:
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我要插入的代码是:
function redirect($url)
{
@header('location: ' . $url);
exit('<meta http-equiv="Refresh" content="0;url='. $url .'">');
}如果post不是以ajax的形式插入,这个问题会得到解决吗?
,解决方案是什么?
发布于 2022-05-21 03:43:10
Wordfence就像诺顿,会阻止/杀死某些东西。尝试使用? page_id =././etc/passwd访问站点,即使page_id不是有效的参数,它也会触发wordfence。
卸载字栏
发布于 2022-05-21 07:15:54
请尝试使用这样的wordpress函数:
function redirect($url)
{
wp_redirect($url, 301);
exit;
}https://stackoverflow.com/questions/72326396
复制相似问题