我的一个网站使用joomla开发的。它实际上是一个旧版本(版本1.5)。它运行成功,但现在它显示403 Forbidden错误。Joomla 403禁止的错误
我htaccess文件看起来像这些
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode data within the URL
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
RewriteBase/
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
如果行为改变,并且htaccess不是那么最有可能在环境中的东西改变。例如,PHP版本或apache版本改变了吗? – Elin
我联系了托管团队,他们告诉它由于病毒。你可以告诉我如何修复病毒文件。 – PHPCoder
Joomla文档站点提供有关如何处理被黑客攻击的建议。 https://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced – Elin