Codeigniter日志中的奇怪404错误

时间:2018-05-25 11:55:12

标签: php codeigniter

过去一周左右我注意到我在基于Codeigniter的网站上的日志中遇到了很多奇怪的404错误。几个例子:

404 Page Not Found: Apple-touch-iconpng/index
404 Page Not Found: 404javascriptjs/index
404 Page Not Found: 404testpage4525d2fdc/index
404 Page Not Found: Faviconico/index

其中一些是存在的东西(apple-touch-icon.png),但404错误缺少文件扩展名,后面有一个“/ index”。其中一些是甚至不存在的文件(404testpage4525d2fdc)。我已经浏览整个网站寻找断开的链接,但没有。我也没有在实际网站上显示任何404错误 - 只是在日志中。

我的.htaccess文件:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

我的路线档案:

$route['default_controller'] = 'welcome';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route[LOGIN_PAGE] = 'users/login';
$route['landlords'] = 'listings/directory/1';
$route['complexes'] = 'listings/directory/2';
$route['managers'] = 'listings/directory/3';
$route['apartments/sublets'] = 'listings/index/13';
$route['apartments/roommates/19'] = 'listings/index/19';
$route['apartments/roommates/20'] = 'listings/index/20';
$route['apartments/roommates/21'] = 'listings/index/21';
$route['apartments/roommates/22'] = 'listings/index/22';
$route['apartments/roommates'] = 'listings/index/14';
$route['apartments/listings'] = 'listings/index/15';
$route['apartment-alerts'] = 'notification/add_notification';
$route['apartments/listings/([0-9]-(beds))'] = 'listings/index/$1';

就像我说的那样,网站本身似乎工作正常,但我无法弄清楚是什么导致这些错误出现在日志中。我试过寻找答案,但他们似乎都在处理网站上出现的404错误,并且是应该在服务器上的实际资源。任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:0)

根据我在最近20分钟的研究中能够得出的结论,404testpage4525d2fdc404javascript.js似乎是检查恶意行为的扫描程序所要求的,尤其是在使用WordPress的网站上。 (我想您的重写规则是从/index删除句点并将其附加到任何不存在的请求文件中。)

Securi是这样一种扫描仪。通过https://sitecheck.sucuri.net/results/www.example.com检查您的网站,然后立即检查您的访问日志,您可能会看到其中一个或两个位置的新条目。

其他网络爬虫(可能是搜索引擎)正在尝试检索Apple-touch-icon.pngFavicon.ico来从您的​​网站中获取徽标。