Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Safe External Links

85 sites Security covered
View on drupal.org

Safe External Links automatically modifies your website's external links to open in a new browser tab, adding the necessary security attributes to prevent tabnapping attacks. This provides a safer browsing experience for your users by preventing potential phishing and ensuring browser security warnings are avoided.

Most of the clients I worked for asked that external links on their website should open a new browser window or tab. Safe External Links (sel) does this for you automatically and properly. It modifies external links to make them open a new window by adding target="_blank" and rel="noreferrer" or rel="noopener" attributes to the anchor tag.

Properly?

If you simply just have a target="_blank" on outbound links, you put your site visitors at risk of tabnapping.
Tabnapping is a phishing attack that takes advantage of user trust and inattention to detail in regard to tabs, and forces the browser to navigate to an impersonated page after the page is left. Mathias Bynens created a great Github page for demonstrating this attack.
And this is why Google Chrome’s built-in Lighthouse validation warns you if it finds an external link with a _blank target without the appropriate relation:


Lighthouse audit report warning about unsafe cross-origin link destinations.

The solution

The best thing is: Safe External Links can solve these. You only have to download and enable it, change the link formatters and update the filter formats you use.

Processed Drupal components:

  • Menu links
  • Link fields (sel_link field formatter)
  • Formatted texts (filter_sel filter plugin)

Activity

Total releases
1
First release
Jun 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
8.x-1.1 Stable Jun 28, 2025