Skip to main content

A simple http proxy

Project description

Mooo

PyPI version

Mooo is a lightweight HTTP proxy written in Python. You can run it in a server then use it to access the internet.

Quick Start

[!WARNING] By default, mooo porxy all domains, which means it can retrieve the local network. This poses a security risk. It is recommended to specify --domain or --profile to limit the domain that the proxy server

Option 1: Use Python package

  1. Install moon with pip install mooo

  2. Start the proxy server

mooo --host 0.0.0.0 --port 8080

Option 2: Use Docker image

docker run -p 8080:8080 bebound/mooo --host 0.0.0.0 --port 8080

Use mooo

curl http://your_proxy_server:8080/{http_url}
git clone http://your_proxy_server:8080/{github_url}

Use pre-defined profile

Mooo provides some pre-defined profiles, you can use it to proxy some popular websites. Currently, it supports github, google and docker.

Use mooo to proxy github.com

mooo --profile github --profile github

Use mooo to proxy multiple profile with same port. You need to use reverse proxy to route the request to mooo with specific domain. Mooo routes the request to different profile based on the domain. For example, access github.custom.domain will route to github.com and docker.custom.domain will route to docker registry.

mooo --profile github docker google --smart-route

Parameters

Parameter Description Default Example
--host The listening host 127.0.0.1 0.0.0.0
--port The listening port 8080
--debug Show debug logging False
--domain Once it's set, the request domain must match the wildcard domain list None *.github.com
--cookie Pass the cookie to the server False
--default-domain The default domain to proxy None https://www.github.com
--profile Use pre-defined profile None github
--smart-route Apply profile rules based on host domain False

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mooo-0.1.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mooo-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file mooo-0.1.1.tar.gz.

File metadata

  • Download URL: mooo-0.1.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mooo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8d5e81b275035ceef952460a0b3f49386ece684c3181cf5df9cc9218ca01c59a
MD5 a33a7f9193313442ad8e9cdcc449a3af
BLAKE2b-256 0aa000680c6704cdc21e7f24105acaf9eca878a66911def0c10a6cea70256dad

See more details on using hashes here.

File details

Details for the file mooo-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mooo-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mooo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5d8b5cc91b2b11d5fd16909c662d289b197bc0c3a6235dd899f47ee8153fde6
MD5 1c16d2fc540cf58d8403a75d8a15a9ce
BLAKE2b-256 62d9467e74773620f04689bea3d32a596bf745645323c7fa877d68c4b930b43e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page