PHProxy is an HTTP/HTTPS proxy built for development purpose, with custom name resolution.
Currently, is supports HTTPS protocol, and might support HTTP protocol in some conditions, and websocket as well.
Clone this repository or download a release on github.
Example : run locally on port 8001.
./bin/phproxy run 127.0.0.1:8001
--config file
: will load configuration from this file.--save
: will load configuration file, apply changes, and save it again, and then run the proxy.
--auth
: adds basic authentication credentials. Add as many as you wish.
--translate from=to
: will connect toto
instead offrom
. Could be either ips or domain names for bothfrom
andto
.
Translations can also be all subdomains, for instance
.original.com=.target.net
. Then
www.original.com
will be redirected towww.target.net
- BUT
original.com
will not be redirected.
Some browsers/extensions support SSL Proxies. Thus, you can configure the proxy to run on ssl :
--ssl
: will activate SSL support.--ssl-cert
: use this file as PEM certificate file (with chain).--ssl-key
: use this file as PEM private key.--ssl-passphrase
: pass phrase for private key.
One MUST consider security when running a proxy : run the proxy behind a firewall, or add security, ideally over SSL transport.
- Add DI for extension support, remove usage of static functions.