Giter VIP home page Giter VIP logo

squid-proxy's Introduction

Docker Image of an Anonymous HTTP Proxy

docker Docker Cloud Automated build License

This Docker image helps you start your own Squid proxy server, with HTTP Basic authorization. You may need this if you want your crawling/scaping software to look like constantly going to the Network from the same IP address. You rent a VPS, start a Squid server there and configure your software to go everywhere through an explicit HTTP(S) proxy.

When Docker is installed, run this:

$ docker run --name proxy --detach --restart=always --publish 8081:3128 \
  --env USERNAME=jeffrey --env PASSWORD=swordfish \
  yegor256/squid-proxy

Or, you can use docker compose:

version: '3'
services:
  proxy:
    image: yegor256/squid-proxy
    restart: always
    ports:
      - "8081:3128"
    environment:
      - USERNAME=jeffrey
      - PASSWORD=swordfish

Now you can connect to localhost:8081 with jeffrey:swordfish credentials. For example:

curl -vvv --proxy http://jeffrey:[email protected]:8081 https://google.com/

BTW, the proxy is anonymous. Once it's up and running, you can check whether it's visible, here. It also doesn't store any logs and doesn't cache any content.

Developing

Build it locally:

docker build . -t squid-proxy:latest

Want to push to a local machine?

docker save squid-proxy | ssh -C your@machine docker load

squid-proxy's People

Contributors

iloveitaly avatar philetaylor avatar renovate[bot] avatar yegor256 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

squid-proxy's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
Dockerfile
  • ubuntu 24.04
github-actions
.github/workflows/actionlint.yml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/docker.yml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/hadolint.yml
  • actions/checkout v4
  • hadolint/hadolint-action v3.1.0
  • ubuntu 22.04
.github/workflows/markdown-lint.yml
  • actions/checkout v4
  • articulate/actions-markdownlint v1
  • ubuntu 22.04
.github/workflows/shellcheck.yml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/yamllint.yml
  • actions/checkout v4
  • ibiqlik/action-yamllint v3
  • ubuntu 22.04

  • Check this box to trigger a request for Renovate to run again on this repository

Access Deployed Proxy server on Heroku

I tried deploying a fork of this repo on Heroku: https://elements.heroku.com/buttons/bynaristar/heroku-squid-proxy

But not sure how to access it.

For example in my PC I'd access proxy via curl request:
curl -x http://jeffrey:swordfish@localhost:8081 -L http://google.com
This works fine.

But how can I do this after deploying to Heroku:
I tried **curl -x http://jeffrey:[email protected]/:8081 -L http://google.com**
Throws invalid URL

Also tried using postman with username and password authentication in header for just http://squidi.herokuapp.com/ but still didn't work.

Any idea on how to access proxy deployed on Heroku?
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.