Using Nginx as an injection proxy

Hi,

I’d like to know whether it is possible to use Nginx as an injection
proxy (for 100% legal and professionnal use ! :slight_smile: ), notably to analyse
the headers or content of a response, and perform automated changes on
either or both the headers/content of the request, or change some parts
of a request.

Practically, I want to do exactly the same kind of things that Fiddler 2
allows to do : perform tests on header/content, and automatically make
changes.

Bye,
Yann

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,168299,168299#msg-168299

up :slight_smile:

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,168299,174974#msg-174974

On 21.01.2011, at 19:44, yannlossouarn wrote:

Fiddler 2
allows to do : perform tests on header/content, and automatically make
changes.

It’s not possible.


Igor S.
http://sysoev.ru/en/

Hi Igor,

Oh I see : if you tel it’s not possible, I guess it is really not
possible at all… ^^ Just for the sake of my mind, I’d be interested in
complementary information : I was just studying nginx documentation, and
had the feeling there may be something possible, by using simultaneously
the rewrite, proxy and substitution modules. Where is the issue ? :confused:

Bye and thanks for the great work !
Yann

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,168299,175031#msg-175031

@SplitIce : basically, I’d prefer to avoid using another language/module
: I have not complete freedom over server setup. LUA is not installed on
current setup, and I think sysadmins might be reluctant to installing
the LUA module just for me. :confused:

Would Rewrite+ Proxy + Substitution(s) make it, if I slightly modify my
demand, so that I do not make “tests on header/content” before making
changes. E.g., the aim would be to make requests on
http://mysubdomain.mydomain.net get data on http://somewhere.else.net,
changing the response body so that links to
http://somewhere.else.net/foo.bar.html” are changed into
http://mysubdomain.mydomain.net/tutu.html”, plus other similar changes
in the html source code ?

Thanks,
Yann

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,168299,175061#msg-175061

You could do it using embedded perl or LUA probably.