gpt4 book ai didi

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

转载 作者:搜寻专家 更新时间:2023-10-31 22:32:21 25 4
gpt4 key购买 nike

我想知道 w3techs 如何知道给定服务器何时使用 Node.js。 http://w3techs.com/technologies/details/ws-nodejs/all/all

我猜他们会查看一些特定的 http header 。

例如:X-Powered-By:Express

但并不是每个 Node 模块都会生成这样的 header 。

你知道流行 Node 模块生成指纹的其他方式或类似方式吗?

最佳答案

正如@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...

后面还有“我们可能不会”、“在某些情况下”、“某些技术”、“不准确的结果”

关于node.js - 如何知道服务器是否正在运行 Node.js?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25977951/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com