Giter VIP home page Giter VIP logo

sslgetfix's Introduction

sslgetfix

A simple solution to fix non-ssl external dynamic images. (Linux only)

Context: It sometimes happen that you want to have a dynamic image on your ssl website, but that the source site doesnt use ssl encryption. This is a problem because your browser will say that the connection to the website isn't encrypted because of that image. The solution is to get that image from the source website periodically and save it under your webserver. That way, the image is hosted on your ssl encrypted webserver.

##Installation

1- Download the imagefetcher.sh file to a directory on your server.

cd /path/to/desiredfolder
wget https://github.com/Spazmic/sslgetfix/blob/master/imagefetcher.sh

2- Modify the imagefetcher.sh file to fit your needs.

nano imagefetcher.sh

Replace "http://www.urltoimage.com/image.png" for the url of the image. By default, this script will save the image.png in the /opt folder and then copy that image.png to the webserver. You can modify the receiving folder.

3- Add the rule to your crontab

crontab -e

Put this at the end. You can change the amount of time of the fetch. Here is an example for 2 minutes.

*/2 * * * * /path/to/imagefetcher.sh

sslgetfix's People

Contributors

spazmic avatar

Watchers

 avatar James Cloos 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.