Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 我的htaccess被黑客攻击了吗?_.htaccess - Fatal编程技术网

.htaccess 我的htaccess被黑客攻击了吗?

.htaccess 我的htaccess被黑客攻击了吗?,.htaccess,.htaccess,我在我的.htaccess文件中找到了以下几行。。我已将我的网站名替换为example.com。我没有将此添加到我的.htaccess文件中 AuthName "example.com" AuthUserFile "/home3/examplec1/.htpasswds/public_html/example.com/passwd" 这是什么?为什么要添加到我的.htaccess文件中?是否有人下载了公共的html文件 如果我真的被黑客攻击了,我如何防止再次被黑客攻击 我以前在cpanel中尝

我在我的
.htaccess
文件中找到了以下几行。。我已将我的网站名替换为
example.com
。我没有将此添加到我的
.htaccess
文件中

AuthName "example.com"
AuthUserFile "/home3/examplec1/.htpasswds/public_html/example.com/passwd"
这是什么?为什么要添加到我的
.htaccess
文件中?是否有人下载了公共的html文件

如果我真的被黑客攻击了,我如何防止再次被黑客攻击


我以前在cpanel中尝试过保护一个文件夹(不记得是哪一个),这会改变我的
.htaccess

这可能是由您的主机提供商或有权访问您的环境的人添加的。添加保护不会严重伤害您。删除或更改保护会更糟糕。

也许你应该提及你正在使用的操作系统。我猜你的主机做了一些更新,这是一个不完整的目录保护,用于这样的密码保护目录,应该不会对你造成伤害。