|Luna 626a318781 added redirect.js||3 달 전|
|config/apache||5 달 전|
|data/public||3 달 전|
|.env.template||5 달 전|
|.gitignore||5 달 전|
|LICENSE||4 달 전|
|README.md||3 달 전|
|docker-compose.yml||5 달 전|
A very simple and lightweight redirect page to avoid your visitors to reveal where they came from.
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
$VIRTUAL_HOST after a couple of minutes to see if it’s redirecting well.
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
You can also add the
keep-ref class to whatever links you want not to be protected.
This project is licensed under the terms of the GNU General Public License version 3. See the LICENSE file.
© 2019 firstname.lastname@example.org