mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-07 15:34:59 +00:00
39 lines
966 B
Markdown
39 lines
966 B
Markdown
# php-httpproxy
|
|
HTTP proxy implementation with PHP socket
|
|
|
|
## How to works
|
|
```
|
|
You <-----> HTTP proxy (Python) <-----> Web hosting (PHP) <-----> On the Web
|
|
```
|
|
|
|
HTTP 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/
|
|
CLIENT_ENCODING=utf-8
|
|
```
|
|
|
|
2. Run `python server.py` and set HTTP proxy in your web browser (e.g. Firefox)
|
|
|
|
3. Test [100MB](http://speed.hetzner.de/100MB.bin), [1GB](http://speed.hetzner.de/1GB.bin), [10GB](http://speed.hetzner.de/10GB.bin) download and check the speed (e.g. http://speed.hetzner.de/1GB.bin)
|
|
|
|
3. Enjoy it
|
|
|
|
4. (Optional) With [Cloudflare](https://cloudflare.com), we can expect to accelerate the 4x speed and reduce the network stuck.
|
|
|
|
## References
|
|
* https://github.com/anapeksha/python-proxy-server
|
|
|
|
## Contact
|
|
* gnh1201@gmail.com
|