Socket
Book a DemoInstallSign in
Socket

mooo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mooo

A simple http proxy

Source
pipPyPI
Version
0.1.1
Maintainers
1

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

  • Install moon with pip install mooo

  • 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

ParameterDescriptionDefaultExample
--hostThe listening host127.0.0.10.0.0.0
--portThe listening port8080
--debugShow debug loggingFalse
--domainOnce it's set, the request domain must match the wildcard domain listNone*.github.com
--cookiePass the cookie to the serverFalse
--default-domainThe default domain to proxyNonehttps://www.github.com
--profileUse pre-defined profileNonegithub
--smart-routeApply profile rules based on host domainFalse

Keywords

HTTP

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts