小编Eug*_*nio的帖子

被黑的 WordPress .htaccess 文件

我有一个 WordPress 网站,其中包含 .htaccess 和名为postfs.php的文件。

但是当我尝试删除它们时,它们又被写入了。我尝试删除网站上的所有文件、更改权限、检查 cron...但没有任何事可做。一旦我删除或编辑这些文件,它们就会出现。

文件内容如下:

文件.htaccess

<FilesMatch ".(PhP|php5|suspected|phtml|py|exe|php|asp|Php|aspx)$">
    Order allow,deny
    Deny from all
</FilesMatch>

<FilesMatch "^(postfs.php|votes.php|index.php|wjsindex.php|lock666.php|font-editor.php|ms-functions.php|contents.$
    Order allow,deny
    Allow from all
</FilesMatch>

AddType application/x-httpd-cgi .sh

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]
</IfModule>
Run Code Online (Sandbox Code Playgroud)

postfs.php文件具有以下内容:PHP Decode

如何避免恢复这些文件?

security wordpress .htaccess

3
推荐指数
2
解决办法
4万
查看次数

标签 统计

.htaccess ×1

security ×1

wordpress ×1