caterpillar/README.md
2024-02-17 18:01:59 +09:00

1.3 KiB

php-httpproxy

HTTP(S) proxy implementation with PHP socket

How to works

You <-----> HTTP(S) proxy (Python) <-----> Web hosting (PHP) <-----> On the Web

HTTP(S) proxy over the web hosting!

How to use

  1. Write a file with filename like .env(Linux) or settings.ini(Windows). Like this:
[settings]
PORT=5555
SERVER_URL=http://example.org
CA_KEY=ca.key
CA_CERT=ca.crt
CERT_KEY=cert.key
CERT_DIR=certs/
OPENSSL_BINPATH=openssl
CLIENT_ENCODING=utf-8

1.1. (Optional) Install ca.cert

$ sudo apt-get install -y ca-certificates
$ sudo cp ca.crt /usr/local/share/ca-certificates/php-httpproxy-ca.crt
$ sudo update-ca-certificates
  1. Run python server.py and set HTTP(S) proxy in your web browser (e.g. Firefox)

  2. Test 100MB/SSL, 1GB/SSL, 10GB/SSL download and check the speed (e.g. https://speed.hetzner.de/1GB.bin)

  3. Enjoy it

  4. (Optional) With Cloudflare, we can expect to accelerate the 4x speed and reduce the network stuck.

References

Contact