Home > Backend Development > PHP Tutorial > ecshop出现Hacking attempt错误怎么解决

ecshop出现Hacking attempt错误怎么解决

PHPz
Release: 2020-09-04 14:41:31
Original
4219 people have browsed it

ecshop出现Hacking attempt错误的解决方法:首先在需要访问的页面中添加代码【define('IN_ECS', true);】;然后开启IIN_ECS即可。

ecshop出现Hacking attempt错误怎么解决

ecshop报错Hacking attempt怎么解决?

一般出现这个问题原因是因为ecshop某些页面访问权限是关闭的。

这些页面往往会有如下代码

if (!defined('IN_ECS'))
{
    die('Hacking attempt');
}
Copy after login

那么如何访问到这个页面呢?

其实原理很简单,你要在某一个页面访问加入了以上代码的页面,就需要开启IIN_ECS,

如下的设置会让你的页面有访问无法访问权限的页面。

define('IN_ECS', true);
Copy after login

更多相关知识,请访问 PHP中文网!!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template