开发者

Third party IPC calls to Chromium to capture/filter traffic

开发者 https://www.devze.com 2023-01-09 13:37 出处:网络
I want to implement a network level AdBlock/NoScript-like tool for Chromium, but Chromium Extension API can not do much about controlling raw request data.

I want to implement a network level AdBlock/NoScript-like tool for Chromium, but Chromium Extension API can not do much about controlling raw request data.

So here is the idea:

  1. Capture all HTTP queries, and cancel one if URL or MIME matches.
  2. Hand craft packets, like insert a header to an HTTP query.

Can this be implemented by running a thirdparty client making IPC calls to Chromium? A snippet of sample code would be awesome!

(Note: Security is not a problem at the moment coz I only want to try it out for personal interest, not for public distributi开发者_如何学Con. So it may break the sandbox mechanism.)


No it cannot. The Chromium network stack does not support this level of control, neither by Chromium extension, nor by IPC. It's a work in progress. You should watch http://code.google.com/p/chromium/issues/detail?id=50943.

0

精彩评论

暂无评论...
验证码 换一张
取 消