説明
Leaving Notice Popup for External Links allows you to retain visitors and manage outbound traffic effectively. This lightweight, user-friendly WordPress plugin displays a stylish modal warning whenever a user clicks a link pointing to an external website.
By interrupting the exit flow, you give your visitors a moment to reconsider, effectively reducing bounce rates and keeping users engaged with your content longer. It is also an essential tool for affiliate marketers, government sites, and educational portals that need to provide legal disclaimers stating they are not responsible for third-party content.
Why use this plugin?
* Boost SEO & Security: Automatically add rel="nofollow", rel="noopener", and rel="noreferrer" attributes to external links to protect your site’s SEO juice and prevent security vulnerabilities.
* Brand Consistency: Fully customize the popup title, warning message, and button colors to match your website’s design identity.
* Smart Filtering: Use our new advanced filters to show the popup only on specific Page IDs, or enable it conditionally for Archives and Categories.
* Trusted Domains: Easily whitelist affiliate partners or sister sites so users can navigate to them without interruption.
Key Features
- Fully Customizable Notice: Change the title, message, and button text according to your preferences
- Button Customization: Choose colors for both “Continue” and “Stay” buttons
- Domain Whitelist: Exclude specific domains from triggering the notice
- URL Whitelist: Exclude specific URLs from triggering the notice
- Responsive Design: Works perfectly on all devices and screen sizes
- Lightweight: Minimal impact on page load time
- Easy Setup: No coding required, just activate and customize
Use Cases
- Inform visitors when they are leaving your site
- Provide disclaimer for external websites you don’t control
- Prevent accidental navigation away from important processes
- Meet legal requirements for certain jurisdictions
- Increase awareness of external link navigation
Privacy
This plugin does not collect or store any personal data from your visitors.
My other small free plugins projects on WordPress
- Super Web Share – For Native social sharing
- Copy Link to Heading – quickly add a copy icon near to your headings
- Social Profile Frame Generator – Custom Social Media Frames Creator
スクリーンショット
インストール
- Upload the
leaving-notice-popup-for-external-linksfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings > Leaving Notice Popup to configure the plugin
FAQ
-
Will this work with all themes?
-
Yes, Leaving Notice Popup is designed to be compatible with all WordPress themes. The popup is added to the page dynamically and does not interfere with your theme’s design.
-
Does this work for all external links?
-
The plugin works for all standard links that lead to external domains. It will not trigger for special links like mailto:, tel:, javascript: or anchor (#) links.
-
Can I exclude certain domains from triggering the notice?
-
Yes, in the plugin settings you can add domains to a whitelist. Links to these domains will not trigger the leaving notice popup.
-
Can I exclude specific URLs from triggering the notice?
-
Yes, you can add specific URLs to a whitelist in the plugin settings. These exact URLs will not trigger the leaving notice popup.
-
Can I show the notice only on specific pages?
-
Yes, you can use the
externallinknotice_allowed_pagesfilter for specific pages (Pages, Posts, Custom Post Types).
Example:
add_filter( ‘externallinknotice_allowed_pages’, function( $pages ) {
return array( 10, 25 ); // Replace with your Page IDs
} );
Note: This will ONLY work for singular pages/posts. It will not work for archives or categories. -
Can I show the notice on Archives, Categories, or Home page?
-
Yes, for more advanced control, use the
externallinknotice_is_enabledfilter.
Example:
add_filter( ‘externallinknotice_is_enabled’, function( $enabled ) {
if ( is_home() || is_archive() ) {
return true;
}
return $enabled;
} ); -
Will the notice appear when clicking on internal links?
-
No, the popup only appears when users click on links that lead to domains other than your own website.
-
Does the plugin work with embedded content or iframes (YouTube, Google Maps, etc.)?
-
No, the Leaving Notice Popup does not detect or intercept links inside embedded content or iframes. This is by design and is a technical limitation that applies to all similar plugins. Here’s why:
Embeds and iframes (such as YouTube videos, Google Maps, social media widgets, or any other third-party embed) are sandboxed content rendered entirely by the external provider’s server inside an isolated frame. They are not standard anchor (
<a>) links on your page — they are self-contained mini-pages loaded from a third-party domain. Because of browser security policies (specifically the Same-Origin Policy), no WordPress plugin or JavaScript running on your site can access, modify, or listen to click events happening inside an iframe from a different domain.In short:
* Embedded/iframe content is not detectable as an external link by our plugin because it is not a clickable link on your page.
* Attempting to intercept iframe interactions could break the embed’s functionality entirely (e.g., stopping a YouTube video from playing or a map from being interactive).
* The plugin is intentionally scoped to standard HTML anchor links (<a href="...">) that exist directly in your page’s DOM.If you are using embeds and notice that those links do not trigger the popup, this is expected and correct behaviour. The popup will continue to work for all regular external links on your page.
-
My website uses advertisements or ads. Should I use this plugin?
-
We do not recommend using this plugin on websites that rely on advertisements or ad networks for revenue. Here’s why:
Ad clicks are essential for generating revenue on your website. Since ads typically link to external domains, the Leaving Notice Popup will treat those ad links like any other external link and display a warning popup when a visitor clicks on them. This can significantly disrupt the ad click flow and negatively impact your ad revenue. However, you can give a try whether it works for you or not as some ads uses embed and it will not trigger the popup as mentioned in the FAQ section.
While you could technically whitelist all the domains and URLs used by your ad networks, this is not practical because:
* Ad networks serve links from a large and constantly changing pool of advertiser domains.
* You would need to manually whitelist every single ad domain or URL path, which is nearly impossible to maintain.
* Missing even one domain would cause the popup to appear on that ad, potentially costing you revenue.Our recommendation: If your website’s primary monetisation strategy involves display ads, native ads, or any click-based advertising, we strongly advise against installing this plugin to avoid interfering with your ad revenue.
-
Is the plugin GDPR compliant?
-
Yes, the plugin does not collect, store, or process any personal data.
評価
貢献者と開発者
変更履歴
1.3
24th February 2026
* Improved the Settings UI and minor tweaks
1.2
5th January 2026
* Added externallinknotice_allowed_pages filter to restrict popup to specific Page IDs, read FAQ for more details
* Added externallinknotice_is_enabled filter for advanced control (e.g. Archives, Home, Taxonomies)
1.1
10th June 2025
* Added accessibility (Learned this from the WCEU live website review session)
* Added option to configure the external links with SEO and security attributes like nofollow, noopener and noreferrer
* Already existing “rel” attributes for the external links will now be passed to the Continue button rel atttributes within the popup modal window.
1.0.1
9th June 2025
* Minor enhancements to the settings page
1.0
2nd June 2025
* Initial release



