Filtering HTTP traffic output from the web server

0 like 0 dislike
3 views
Hello.

Is there a way to programmatically parse that gives the webserver (eg. Apache) and, for example, to set the output content.
The reason. There is a script(a mixture of php and cgi) with closed source, the output of which right, ie on the host to determine to intervene or not, and if to intervene, then apply the algorithm in regexp not fit.

Preferably not very resource-intensive. The script sometimes 5-10 requests per second...
Thanks in advance!
by | 3 views

3 Answers

0 like 0 dislike
If you are only interested in given the content then try to configure the execution of all PHP scripts with the settings auto_prepend_file and auto_append_file. 1st setting will specify which file to run before running the main script, and the 2nd after running the main script. Also it is possible to sacudete with .htaccess
\r
php_value auto_prepend_file /var/www/public/_init_analiz.php php_value auto_append_file /var/www/public/_end_analiz.php 
by
0 like 0 dislike
Thanks, but it's already known...
The content needs to change, and the problematic script makes it impossible to use the ob_*...
by
0 like 0 dislike
The decision "in a forehead" — to configure Apache on a different port, the old port to hang samopisny proxy which will contact the Apache. Well, to make the processing of the data in the proxy.
by

Related questions

0 like 0 dislike
6 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,758 users