Skip to main content

Generate a simple pac for proxy and ad-block

Project description

simplepac

Generate a simple pac for proxy and ad-block(use the code from easylist-pac-privoxy).

usage: simplepac [-h] -p PROXY -o OUTPUT [--proxy-rule PROXY_RULE]
                 [--user-rule USER_RULE] [--ad-block]
                 [--black-hole BLACK_HOLE]

Generate a simple pac

optional arguments:
  -h, --help            show this help message and exit
  -p PROXY, --proxy PROXY
                        pac proxy like "PROXY 127.0.0.1:8888","SOCKS
                        127.0.0.1:1080"
  -o OUTPUT, --output OUTPUT
                        output pac file
  --proxy-rule PROXY_RULE
                        [optional]proxy rule, Base64 or text, default use
                        gfwlist
  --user-rule USER_RULE
                        [optional]user rule like proxy rule, support cidr like
                        "IP-CIDR,91.108.4.0/22"
  --ad-block            [optional]enable ad block, use easylist.
  --black-hole BLACK_HOLE
                        [optional]ad proxy, usually use a unreachable proxy,
                        IOS may need to set nginx server,default:"PROXY
                        127.0.0.1:12306"

Project details


Release history Release notifications

This version

0.1

Download files

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

Files for simplepac, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size simplepac-0.1-py3-none-any.whl (25.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size simplepac-0.1.tar.gz (24.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page