Tabnabbing is a type of phishing attack that targets inactive tabs in a browser, redirecting users to malicious sites resembling legitimate ones. To prevent tabnabbing, you can use the `noopener` and `noreferrer` attributes when opening links in a new tab.

3m read timeFrom freecodecamp.org
Post cover image
Table of contents
What is Tabnabbing?How to Open a Link in a New Tab in HTMLHow to Add a Noopener / Noreferrer AttributeWrapping Up

Sort: