Code Monkey home page Code Monkey logo

decoy's Introduction

Decoy

Decoy is a reverse-proxy written in python and ready to deploy on Google App Engine platform. It can be configured to serve a specific website through App Engine.

The main advantage Decoy provides is the ability to serve the configured website through GAE platform - Google App Engine, using a sub-domain under *.appspot.com.

Decoy will proxy all URLs which contains the configured domain in config.py file automatically, any other URL will be opened normally without proxy.

Usage

  1. Clone the project git clone https://github.com/icaruslab/decoy.git

  2. Create an account on Google Cloud Platform

  3. After accessing Google Cloud Console create a new project

The project name should be unique, if that's the case the project ID will be the same, other wise it will be assigned a random name. The project ID will be used to access your mirror, final URL will be [ProjectID.appspot.com]

  1. Install Google Cloud SDK
  2. Replace the url variable in config.py with your website domain name
  3. Use your terminal to go the project's directory
  4. Run gcloud init to configure GCloud SDK and login to your account.
  5. Select the project you created earlier using gcloud config set project [ProjectID]

  1. Run gcloud app deploy and follow the instructions to deploy the app

  1. Finally you can confirm your mirror is running by visiting [youprojectname].appspot.com

Why Google App Engine?

The main advantage of having the mirror traffic routed through GAE, is the ability to use a sub-domain under appspot.com to access the mirror.

As the same domain is associated with many other Google cloud services it'd be difficult to block it entirely.

However, it's possible to block the sub-domain without having to block the entire domain name, in which case you'll be able to get a new mirror up and running in less than two minutes by simply creating a new project with a different name and ID and repeating steps 8:10

Attribution

This project was inspired and built on mirrorrr project.

Disclaimer

This project and all Icarus Project’s related code and guides are developed for the sole purpose of Internet censorship circumvention, more specifically in human rights and independent media context.

Icarus Project is not responsible for any abuse and/or malicious use of any of its published research results.

Todo

  • Rewrite in Python3

decoy's People

Contributors

mdtita avatar

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.