Search code examples
c++node.jselectronv8embedded-v8

Intercept any outgoing network request in V8 ( at core level )


I need to modify the embedded V8 engine in electronjs/nodejs in order to intercept/block any network access request, whether it be through request, http module or even src tag in a html or ajax request, i need to pull this off at the core of V8 so that no one could tamper it using any js code. ( Maybe possibly through C++ addons. )

C++ is not my best thing so if anyone could help me with the solution and implementation I'll appreciate it.


Solution

  • V8 does not do any networking requests and has no networking code, so there is nothing to intercept there. You'll have to look at the respective embedder (i.e. Electron/Node).