Giter Site home page Giter Site logo

img-referrer-tunnel's Introduction

Image Tunneler

This is a very barebones implementation of a CORS proxy that also attempts to pass the correct referrer information to bypass server-side restrictions to hotlinking.

To use this, simply append an image's direct URL to the end of https://img-referrer-tunnel.herokuapp.com/, so for example, https://img-referrer-tunnel.herokuapp.com/https://i.imgur.com/RbnS7Ba.jpeg.

If the origin server is rejecting the response, try playing with the host query parameter. For example, https://img-referrer-tunnel.herokuapp.com/https://i.imgur.com/RbnS7Ba.jpeg?host=imgur.com.

Known Mappings

In order to skip the host parameter requirement, known domains are mapped to the host the server expects. Currently known mappings are stored in mapping.json.

Testing

Every URL in endpoints.json will be tested against the proxy to verify that the proxy successfully loads.

Contributions

If you'd like to add an additional mapping, feel free to open a PR. Please also add a test for the domain if you do so.

img-referrer-tunnel's People

Contributors

funkyhippo avatar einlion 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.