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: mod_substitute (or similar) with external substitutions
Author
AfraidOfFeathers



Joined: 05 Aug 2020
Posts: 1

PostPosted: Thu 06 Aug '20 21:37    Post subject: mod_substitute (or similar) with external substitutions Reply with quote

Hi all,

My aim is to substitute fields in a document body using an incremental counter and storing the substitution. In other words I seek to redact certain fields.

If the input body contains is "hello", "hello", "hello" then the proxy server should capture each substitution and replace it with an identifier.

The output could be "1", "2", "3", and the substituted text would be stored elsewhere such as 1:hello, 2:hello, 3:hello.

Then.. I want another proxy that does the same but in reverse. The second proxy should substitute the identifiers with the text that is stored elsewhere.

Alternatively the proxies could replace values with encrypted values, removing the external data storage.

Which Apache mod can help me to do this?

Thanks!
Back to top
James Blond
Moderator


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

PostPosted: Mon 10 Aug '20 11:11    Post subject: Reply with quote

Hi,
for substitution there is mod_substitute[1]


[1] https://httpd.apache.org/docs/2.4/mod/mod_substitute.html
Back to top


Reply to topic   Topic: mod_substitute (or similar) with external substitutions View previous topic :: View next topic
Post new topic   Forum Index -> Apache