简体   繁体   中英

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?

(Please don't misunderstand as "How can I get the source code of a webSite using 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.

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. 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. But, this is accessible at the http request level only, not at the source code level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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