Programowanie · Przegląd i audyt
new-tab
/new-tab
Sprawdza w HTML i JSX, czy odnośniki z target „_blank” mają atrybut rel „noopener noreferrer”.
Dla kogo
- Autor
- thedaviddias ↗
- Repozytorium
- front-end-checklist ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 06.10.2026
Ocena i bezpieczeństwo
100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Przestarzałość
Brak sygnałów. Repozytorium zmienione 06.10.2026, bez odwołań do wycofanych modeli i API.
Licencja
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Sprawdza w HTML i JSX, czy odnośniki z target „_blank” mają atrybut rel „noopener noreferrer”.
Wyzwalacze z opisu
_blanknoopener noreferrer
Oryginalny opis (EN)
Use when reviewing HTML or JSX for anchor elements with target='_blank' to verify rel='noopener noreferrer' is present.
Jak działa
- Quick Reference
- Check
- Fix
- Explain
- Code Review
Sekcje z nagłówków SKILL.md, w oryginale · 36 linii, 250 słów
Podgląd SKILL.md
--- name: new-tab description: "Use when reviewing HTML or JSX for anchor elements with target='_blank' to verify rel='noopener noreferrer' is present." metadata: category: security priority: medium difficulty: beginner estimatedTime: "10" source: frontendchecklist.io url: https://frontendchecklist.io/rules/security/new-tab --- # External Link Security A malicious site opened via target='_blank' can use window.opener.location to silently redirect your original tab to a phishing page — the user switches back and sees a fake login screen on what appears to be your domain. ## Quick Reference - Always add `rel="noopener noreferrer"` to any `<a target="_blank">` link - `noopener` prevents the new tab from accessing `window.opener` and redirecting your page - `noreferrer` additionally suppresses the `Referer` header sent to the destination site - Modern browsers (Chrome 88+, Firefox 79+) implicitly add `noopener` for cross-origin `_blank` links, but explicit markup is required for older browsers and same-origin links - ESLint rule `jsx-a11y/anchor-is-valid` and `eslint-plugin-security` can enforce this automatically ## Check Find all anchor elements with target='_blank' in the HTML and JSX source. Verify each one includes rel='noopener noreferrer' (or at minimum rel='noopener'). Flag any external links opening in a new tab that are missing this attribute. ## Fix Add rel='noopener noreferrer' to all <a target='_blank'> elements. In React/JSX this is rel="noopener noreferrer". Configure an ESLint rule to prevent this from recurring. ## Explain Explain the reverse tabnapping attack enabled by window.opener, how rel='noopener' and rel='noreferrer' prevent it, and the difference between the two values. ## Code Review Review server config, headers, forms, and integration points related to External Link Security. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response. --- For full implementation details, code examples, and framework-specific guidance, see `references/rule.md`. Rule page: https://frontendchecklist.io/rules/security/new-tab
Pliki w paczce (2)
- SKILL.md 2 KB
- references/rule.md 5 KB
Wersje
W bazie nie ma innych skilli o nazwie new-tab.
Migawka bazy z 13.11.2026 · wersja paczki e6693f75fdc1 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100favicon
Sprawdza, czy strona ma poprawnie skonfigurowany favicon, audytuje znaczniki link rel icon w head i przygotowuje infrastrukturę faviconów dla nowego projektu. - 100external-links
Audytuje jakość cytowań na stronach, podpowiada autorytatywne źródła do linkowania twierdzeń i sprawdza poprawność atrybutów linków zewnętrznych, takich jak nofollow i noopener. - 90daisyui
Dostarcza oficjalne wytyczne komponentów daisyUI dla Tailwind CSS przy pisaniu HTML i JSX. - 85Version Management Skill
Zarządza cyklem życia projektu frontendowego: wersje, historię, przywracanie i ścieżki zapisu plików HTML, JSX, TSX i Vue. - 100yida-canvas-upgrade
Migruje strony Yida z komponentów JSX na YidaCodeCanvas, zmieniając publikowany kod na runtimeCode i importedModules. - 100hono-jsx
Pomaga budować interfejs aplikacji Hono z hono/jsx: strony, layouty i formularze renderowane na serwerze przez jsxRenderer, z Vite i komponentami klienckimi z hono/jsx/dom.