An open API service indexing awesome lists of open source software.

https://github.com/b13/snipper

Keep external links secure
https://github.com/b13/snipper

Last synced: 12 months ago
JSON representation

Keep external links secure

Awesome Lists containing this project

README

          

# Snipper

This package is a TYPO3 extension to modify external links on your website.

As explained [in this article on developers.google.com](https://developers.google.com/web/tools/lighthouse/audits/noopener)
opening an external link with `target="_blank"` can negatively impact your page's performance, as this newly opened page
might run on the same process as your page. It also poses a security risk because the other page can potentially redirect
your page to a malicious URL or change your page's content using JavaScript.

This extension adds a Hook for all links generated by TYPO3 using a `typolink` and adds `rel="noopener"` to all
links that open in a new window (`target="_blank"`) and do not have a `rel` attribute, yet. This affects all links
generated by TypoScript (including RTE content added by your editors) or using the Fluid ViewHelper ``.

## How to install this extension?

You can set this up via composer (`composer require b13/snipper`).

## License

The extension is licensed under GPL v2+, same as the TYPO3 Core.

For details see the LICENSE file in this repository.

## Credits

_snipper_ was initially created by David Steeb in 2019, for [b13, Stuttgart](https://b13.com)

[Find more TYPO3 extensions we have developed](https://b13.com/useful-typo3-extensions-from-b13-to-you) that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.