A simple local proxy server, powered by cloudscraper library
This allows you to easily bypass Cloudflare "restrictions" in your project, without having to add additional code
| Step | Instructions |
|---|---|
| 1. Modify Your Requests |
Instead of directly requesting a URL like:https://www.google.comPoint it to your local proxy server: http://localhost:5000/api/proxy/https://www.google.com(Replace 5000 if you change the default port) |
| 2. Start the Proxy Server |
Run the Python server:python server.py |
That's it! Your project can now make requests through the proxy.
Want to change the port? Easy!
Edit the server.py file at the bottom:
if__name__=="__main__":
print('Starting Cloudflare bypass proxy server...')
fromwaitressimportserve# Change the port hereserve(app, host="0.0.0.0", port=5000)The project includes several make commands to help manage the Docker container
| Command | Description |
|---|---|
make build | Build the Docker image |
make run | Run the Docker container (defaults to port 5000) |
make up | Build and run in one go |
make clean | Stop and remove the container |
make logs | View container logs |
make restart | Restart the container |
make status | Check container status |
You can change the port and container settings by editing the variables at the top of the makefile.