logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Web content filtering in Apache proxy server
Author
jim054



Joined: 20 Sep 2014
Posts: 1
Location: USA

PostPosted: Sat 20 Sep '14 20:50    Post subject: Web content filtering in Apache proxy server Reply with quote

Hi,

I am just a newbie in Apache and I am hoping to you can help me with my project. I am using a Windows 7 and the proxy server is working fine. However, I need to run a web content filtering on the server. This should be able to replace or change specific words or phrases from an incoming html and deliver it to the client. I have searched the internet for days for a working configuration but none of them worked. Sad

Here is the current configuration I added on the httpd.conf file:

<IfModule mod_ext_filter.c>
ExtFilterDefine add-tm mode=output intype=text/html/php cmd="Apache/bin/GnuWin32/bin 's/Company1/MyCompany1/g'"
SetOutputFilter add-tm
</IfModule>

<Location "/web/">
SetOutputFilter add-tm
OutputSed "s/Company1/MyCompany1/g"
</Location>

I have also uncommented these modules:

LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.so


Hope someone can help me out with my problem

Thanks!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Wed 24 Sep '14 1:39    Post subject: Reply with quote

Mod sed is what you need. http://httpd.apache.org/docs/current/mod/mod_sed.html
Back to top


Reply to topic   Topic: Web content filtering in Apache proxy server View previous topic :: View next topic
Post new topic   Forum Index -> Apache