简体   繁体   English

如何获取网站的 Node.js 源代码?

[英]How can I get the Node.js source code of a WebSite?

How can I get the node.js runTime source code of a webSite?如何获取网站的 node.js 运行时源代码?

(Please don't misunderstand as "How can I get the source code of a webSite using node.js?") (请不要误解为“如何使用 node.js 获取网站的源代码?”)

Unless the owners of a server have purposely or accidentally left them open for public access or unless they have purposely published their code, you cannot access server-side code in the same way that you can access client-side Javascript code.除非服务器的所有者有意或无意地将它们开放给公众访问,或者除非他们故意发布他们的代码,否则您无法像访问客户端 Javascript 代码一样访问服务器端代码。

Servers are typically secure and the server-side code runs inside that security and you cannot access it.服务器通常是安全的,服务器端代码在该安全性内运行,您无法访问它。

FYI, it doesn't matter whether it's node.js or some other environment.仅供参考,无论是 node.js 还是其他环境都没有关系。 Server-side code is not typically publicly accessible.服务器端代码通常不可公开访问。

You can make requests to the server (just like the browser does) and if the site's pages use Javascript to make ajax calls back to the site's server, then you can also typically make those Ajax calls from your own client.您可以向服务器发出请求(就像浏览器一样),如果站点的页面使用 Javascript 将 ajax 调用返回到站点的服务器,那么您通常也可以从您自己的客户端进行这些 Ajax 调用。 But, this is accessible at the http request level only, not at the source code level.但是,这只能在 http 请求级别访问,而不能在源代码级别访问。

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

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