Ask browsers to not send referrer for external links

This commit is contained in:
Marcin Kulik 2015-04-26 15:55:38 +00:00
parent dd23c87e09
commit 3772da7f63

View File

@ -19,4 +19,8 @@ $(function() {
$('input[data-behavior=focus]:first').focus().select(); $('input[data-behavior=focus]:first').focus().select();
$('[data-toggle="popover"]').popover({ html: true }); $('[data-toggle="popover"]').popover({ html: true });
if ($('meta[name=referrer][content=none]').length > 0) {
$('a[href*=http]').attr('rel', 'noreferrer');
}
}); });