geosolutions-it / http-proxy

Lean and Mean HTTP Proxy written in Java
GNU General Public License v3.0
21 stars 31 forks source link

Add support for whitelist/blacklist of hosts #3

Closed simboss closed 1 month ago

simboss commented 12 years ago
tdipisa commented 12 years ago

First step:

1) Adding a .properties file containing a white list of hostnames. A request is forwarded only if the remote hostname matches at least one.

2) Adding a pluggable callback with check for this inside the servlet code (for example providing a ProxyCallback interface to implement that contains 'onRequest', 'onRemoteResponse' and 'onFinish' methods).

tdipisa commented 1 month ago

Implemented through https://github.com/geosolutions-it/http-proxy/commit/4ba6236a83d70a18b496ba7b844b931cd5050857