A very simple and lightweight redirect gateway.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Luna 626a318781 added redirect.js il y a 1 an
config/apache first commit il y a 1 an
data/public added redirect.js il y a 1 an
.env.template first commit il y a 1 an
.gitignore first commit il y a 1 an
LICENSE better readme il y a 1 an
README.md added redirect.js il y a 1 an
docker-compose.yml first commit il y a 1 an

README.md

Luna’s No-Referrer Redirect Gateway

A very simple and lightweight redirect page to avoid your visitors to reveal where they came from.

Demo: https://redirecting.can-i.help/?to=http%3A%2F%2Fcan-i.help%2F
Repository: https://code.can-i.help/luna/luna-noreferrer-redirect


Installation:

Requires git, docker-compose and a running nginx-proxy.

cd /a_folder_for_your_app
git clone https://code.can-i.help/luna/luna-noreferrer-redirect .
cp .env.template .env
# edit the .env file with whatever editor you rather like
docker-compose up -d # start the service

Then visit $VIRTUAL_HOST after a couple of minutes to see if it’s redirecting well.


Usage:

Include this script in whatever page you want the links to be redirected (required jQuery to be included earlier on the page):

<script src="https://$VIRTUAL_HOST/redirect.js" id="noref-redirect"></script>

You can use the accept parameter to avoid redirecting specific domains. Domains must be comma separated, and * allows to match all subdomains. Url will be for example https://$VIRTUAL_HOST/redirect.js?accept=*.can-i.help,can-i.help.

You can also add the keep-ref class to whatever links you want not to be protected.


License:

This project is licensed under the terms of the GNU General Public License version 3. See the LICENSE file.


Issues & Contact:

Please fill any issue in the dedicated section of the official repository. For anything else, please contact Luna at luna@can-i.help.




© 2019 luna@can-i.help