如何知道服务器是否正在运行Node.js?

前端之家收集整理的这篇文章主要介绍了如何知道服务器是否正在运行Node.js?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想知道w3techs如何知道给定服务器何时使用Node.js.
http://w3techs.com/technologies/details/ws-nodejs/all/all

我猜它们会看一些特定的http标头.

例如:X-Powered-By:Express

但并非每个节点模块都会生成此类标头.

您是否知道流行节点模块生成的任何其他方式或类似指纹?

解决方法

正如@brad,@ jessie-a-morris,@ tknew的评论已经指出的那样,没有易于使用的方法可以在您自己的分析器中轻松重复使用.

引自w3techs自己的信息:

http://w3techs.com/faq特别是章节“您的网站分析器究竟如何工作?”说明

…We search for specific patterns in the web pages that identify the usage of technologies,similarly to the way a virus scanner searches for patterns in a file to identify viruses. We use a combination of regular expressions and DOM traversal for this search. We have identified several thousand indicators for technology usage. These indicators have different priorities,and based on the presence or absence of specific combinations of indicators in a specific context,we come to our conclusions.

These are examples of the information used by the indicators:

  • HTML elements of web pages
  • Specific HTML tags,for example the generator Meta tag
  • JavaScript code
  • CSS code
  • The URL structure of a site
  • Offsite links
  • HTTP headers,for example cookies
  • HTTP responses to specific requests,for example compression

A lot of research was necessary to build the analyzer,and we keep improving it all the time. We want it to be the best possible website analyzer…

并且http://w3techs.com/disclaimer指出了这一点

…In order to obtain any information from websites,we rely on the websites themselves,their owners or their webmasters to provide such information. Some websites are more open to sharing this type of information than others. Some technologies may provide more means to reveal information about their usage than others…

更多“我们可能不会”,“在某些情况下”,“某些技术”,“不准确的结果”如下

原文链接:https://www.f2er.com/nodejs/241202.html

猜你在找的Node.js相关文章