beck24/image_proxy

Proxy scheme for http images embedded in https elgg sites

Installs: 224

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 2

Open Issues: 1

Type:elgg-plugin

2.0.2 2018-04-18 09:52 UTC

This package is auto-updated.

Last update: 2024-10-29 05:16:16 UTC


README

Proxy scheme for http images embedded in https elgg sites

Non-https image urls not originating from the elgg host name are replaced with a proxy url to mod/image_proxy/image.php This file forwards the headers and image content from the http source through to the browser using the elgg site ssl thereby removing unsecure content warnings from browsers.

Non-https images originating from the elgg host over http are rewritten to serve from https

The proxy has an encryption element to ensure that urls passed through are originating as elgg content. This uses the elgg site secret by default. The elgg engine is not booted during the proxy forwarding process to keep things as lean as possible. A single database query is used to retrieve the site secret.

This can optionally be bypassed by adding a new secret string directly to the settings.php file

$CONFIG->image_proxy_secret = 'my secret string';

Adding a custom image_proxy_secret to the config will eliminate all database interaction for the proxy