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
- Host: GitHub
- URL: https://github.com/b13/snipper
- Owner: b13
- License: gpl-2.0
- Created: 2019-07-26T10:13:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-24T09:16:38.000Z (almost 3 years ago)
- Last Synced: 2024-08-09T06:53:59.328Z (almost 2 years ago)
- Language: PHP
- Size: 87.9 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.