Block Opener on Targeted Links

Add rel attribute values on mouseup to block window.opener in the linked site, also blocks referer (2016-09-01)

Από την 01/09/2016. Δείτε την τελευταία έκδοση.

Δημιουργός
Jefferson Scher
Βαθμολογίες
0 0 0
Έκδοση
0.5
Δημιουργήθηκε την
01/09/2016
Ενημερώθηκε την
01/09/2016
Μέγεθος
1 KB
Άδεια
BSD 3-clause
Εφαρμόζεται σε
Όλοι οι ιστοχώροι

You may find it troubling that when you follow a link in Tab 1 (Site A) which is targeted to open Site B in a new window or tab, Site B can change the page in Tab 1 from Site A to Site C or whatever. This script adds some rel attribute values to such targeted links to limit the potential for that. It does not attempt to clean up uses of window.open(), however.

Side effect: Site B cannot tell the source of the referral was Site A.

See:

* https://www.reddit.com/r/firefox/comments/50nz1m/is_it_possible_to_protected_yourself_from/
* https://mathiasbynens.github.io/rel-noopener/