views:

13

answers:

0

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 distribution. So it may break the sandbox mechanism.)