简体   繁体   English

Joomla和K2 Soft404错误

[英]Joomla and K2 Soft404 errors

We are using Joomla for a public site and we are getting a ton of soft 404 errors that all look similar to 我们将Joomla用于公共站点,并且收到大量的404软错误,这些错误看起来都与

/?option=com_k2&view=itemlist&task=user&id=xxx

where xxx = some numeric id. 其中xxx =一些数字ID。 Obviously this is some soft of spamming but how do I turn it off in Joomla/K2? 显然,这是垃圾邮件的一种软性,但是如何在Joomla / K2中将其关闭?

I'm not particularly Joomla oriented but this seems a task I should be able to accomplish if I can get an idea of "where" to fix the code. 我不是特别面向Joomla,但是如果我能对代码进行修复的话,这似乎应该是我可以完成的任务。 The page shows a warning instead of an error 该页面显示警告而不是错误

Warning JUser: :_load: Unable to load user with ID: 35414 警告JUser::_load:无法加载ID为35414的用户

so it seems the "page" is actually there but with no content. 因此似乎“页面”实际上在那里,但没有内容。 I'm guessing some internal handler is spitting this dynamic content out but I want to return 404 in this case. 我猜有些内部处理程序正在吐出这种动态内容,但在这种情况下我想返回404。 Any ideas would be appreciated. 任何想法,将不胜感激。

I'm trying to understand the nature of your problem. 我试图了解您问题的性质。 What do you mean with "Soft 404" errors? 您说“ Soft 404”错误是什么意思? Do you have 404 errors or not? 您是否有404错误?

On my K2 websites, I have sometimes "visitors" who try to find holes in K2. 在我的K2网站上,有时我有“访问者”试图在K2中发现漏洞。 I then have many, many accesses of the same page. 这样,我可以在同一页面上进行许多访问。 These visitors try to post comments or somethings else on the articles or user profiles. 这些访问者尝试在文章或用户个人资料上发表评论或其他内容。

Is this a similar thing that is happening on your site? 这是否在您的网站上发生类似的事情?

  • Is there a (Joomla) user on your site with ID 35414? 您的网站上是否有ID为35414的(Joomla)用户? If not, you can be pretty sure that someone is trying to hack your site. 如果没有,您可以确定某人正在尝试入侵您的网站。
  • Is the URL always requested by the same user? URL是否总是由同一用户请求? You can find this in the log files of the Apache server. 您可以在Apache服务器的日志文件中找到它。 In such cases I add a "deny from" statement to my .htaccess file. 在这种情况下,我在.htaccess文件中添加了“ deny from”语句。

In case you seriously expect a K2 related issue, I would recommend to post the issue in the K2 forum . 如果您真的很期待与K2相关的问题,建议您在K2论坛上发布该问题。 This forum is quite knowledgeable and JoomlaWorks makes a serious effort to bring good K2 customer support. 这个论坛知识渊博, JoomlaWorks竭尽全力为K2提供良好的客户支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM