Exit Notifier


Some industries’ compliance recommendations suggest that a notice be presented anytime someone leaves your site. I searched for a plugin to do this, and came up empty, so here you go!

* Works with little or no configuration.
* The title and the body of the exit box, and the text on the buttons are all editable, and honor shortcodes.
* There are also options for providing a visual indication on your selected links, and for opening selected links in a new window/tab.
* You can completely customize the display of the dialog by modifying the CSS.
* You can set a timeout that will continue or cancel when the time expires, with optional visual feedback.
* Add CSS classes to selected links.
* Add Custom CSS that applies to the whole site.
* You can add custom tags in the anchor tag for each link to provide custom title and body for each link.
* Compatible with simple forms in some cases. Should work well with WooCommerce External/Affiliate product pages.
* Will honor <a target=”whatever”> for selectively opening in a new tab/window.
* Allows you to add rel=”nofollow” to all outbound links.
* You can now exclude individual links by applying a CSS class.
* Accessibility issues addressed with library updates.


When upgrading, please be sure to clear the cache if you’re using a caching plugin like the excellent WP Fastest Cache (http://www.wpfastestcache.com/) or something similar. There have been substantial changes and having older versions of the files cached will almost certainly lead to problems when an external link is clicked.

Credit where credit is due

I have made liberal use of the excellent WordPress Plugin Template by Hugh Lashbrooke found at https://github.com/hlashbrooke/WordPress-Plugin-Template. Thanks, Hugh!

Also, to HTMLGuy, the maker of jAlert, a very versatile and simple alert component! Thanks!


  • A sample notice in action.
  • Default exit box closeup.
  • Content settings page.
  • Alternate Content settings page.
  • Behavior settings page.
  • Display settings page.
  • Timeout settings page.
  • Custom CSS settings page.


Installing “Exit Notifier” can be done either by searching for “Exit Notifier” via the “Plugins > Add New” screen in your WordPress dashboard, or by using the following steps:

  1. Download the plugin via WordPress.org
  2. Upload the ZIP file through the ‘Plugins > Add New > Upload’ screen in your WordPress dashboard
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.


What is the plugin for?

This plugin is designed to provide a mechanism for notifying users of your site that they are leaving for another server. It can also be used to pop an alert for pretty much any <a> tag target (and now some forms!) with some jQuery selector magic. Some industries recommend notifying users if they are leaving your site.

Can I edit the text in the box?

Yes. The plugin provides generic defaults, but the settings page allows you to edit the title and body of the exit box. You can now also edit the text of the buttons, and determine the box behavior and look and feel.
You can also add exit-notifier-title=”Your title here” and/or exit-notifier-body=”Custom Exit Notifier Body text” to any link to customize the message for that particular link.

How do I “whitelist” links so the notifier does not appear even though they are offsite?

You can bypass exit notifier for some links by following the guidelines here: https://wordpress.org/support/topic/a-way-to-whitelist-a-site/


October 12, 2020
This plugin is a super easy solution for exactly what I needed for a client's website. I suspect more and more sites will need this functionality going forward. This plugin does the trick. And if you need help, as I did, you'll benefit from the super fast and super helpful support. Thanks for the great plugin and help!
February 7, 2020
Well it has a nice and easy to use admin back-end but unfortunately it doesn't work at all. I would have been happy to pay for it only if it just worked.
Read all 21 reviews

Contributors & Developers

“Exit Notifier” is open source software. The following people have contributed to this plugin.


Translate “Exit Notifier” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fix Custom Theme BUG — Thanks Erik!
  • Add SweetAlert2 as an option for notification


  • 2020-09-14
  • Updated jAlert for accessibility


  • 2020-09-09 (unreleased)


  • 2020-08-25
  • Added exclusion class to anchor behavior page.
  • Added rel=”nofollow” option as requested by Chuck W.
  • Added debugtoconsole parameter to print the jQuery selector to the console if checked.


  • 2020-02-19
  • BUGFIX: Long overdue fix for Alternate Content not including the URL in the Go button text. First reported by @rdesk.


  • 2020-02-19
  • Added shortcode handling to button text as requested by @wust.


  • 2020-02-07
  • ACTUAL BUGFIX: Fatal errors in some circumstances when detecting target. Thanks Austin!


  • 2020-02-07
  • BUGFIX: Fatal errors in some circumstances when detecting target. Thanks Austin!


  • 2020-02-01
  • Honors <a target=”_blank”>.
  • Timeout text is customizable for Continue and Cancel. Both modifications in this version suggested by @blubstar.


  • 2020-01-07
  • Cosmetic/typo issue


  • 2019-11-20
  • Compatibility check/update


  • 2019-01-15
  • BUGFIX: Error in applying jQuery selector appropriately. Thanks again to Paul A. for his quick testing!


  • 2019-01-15
  • Form handling is now off by default, due to some unforseen interactions on some sites. Thanks to Paul A. for finding the issue.


  • 2019-01-14
  • Add the ability to attach Exit Notifier to forms. Suggested by/with help from @jdrda, @kepu, and Annina W.


  • 2019-01-10
  • BUGFIX: Include the URL on the Go button checkbox fixed. Thanks again to @ccondray for alerting me to this one!


  • 2019-01-10
  • Added Advanced tab in settings and the option to not delete settings on uninstall.
  • Due to inspiration from @internetnoob, added a per-link option to customize the title and body for each link with custom attributes.


  • 2019-01-10
  • BUGFIX: Custom theme stopped working in 1.5. Thanks to @ccondray for helping find the bug!


  • 2018-12-17
  • Updated a few cosmetic issues and credits, including a warning about caching plugins when upgrading from 1.4 to 1.5 and later.
  • Added the option to blur the background.
  • Properly cleaning up settings when plugin is deleted.


  • 2018-12-14
  • Added an Alternate Exit Notifier option and more timeout options.


  • 2018-12-13
  • BUGFIX! Missing file. Sorry everyone!


  • 2018-12-13
  • Updated jAlert version
  • Fixed some WCAG issues brought to my attention by @mothershiparts
  • Added the ability to expand the target URL in the body or title by including {target} in the text. Thanks to @mdsteveb for the suggestion.
  • Added an option to display a progress bar for the timeout. Thanks to @mdsteveb for the suggestion.
  • Adjusted jAlert font size to use em instead of px. Thanks to @hmsproducts for the suggestion.


  • 2018-12-12
  • Added option to add CSS classes to selected links.
  • Added sensible hardcoded defaults in case of no selections preventing errors in some installations before specific configurations are chosen.


  • 2017-09-07
  • Internal changes for a specific use case.


  • 2017-06-15
  • Fixed minor error involving the Exit Box Theme sometimes not being selected leading to it failing to fire.


  • 2017-06-09
  • Minor metadata update


  • 2017-06-09
  • Added the timeout feature and settings tab.


  • 2017-04-03
  • Added exitNotifierLink class to all selected links so that you can style them to suit. Added the option to use no animation.


  • 2017-03-16
  • Added option to turn off URL in button text, and process shortcodes in the body text and popup title.


  • 2017-03-01
  • Added in an advanced CSS field that allows editing CSS that will affect the whole site and should take precedence over other CSS. WARNING: Do not use if you are not confident in your understanding of CSS!


  • 2017-02-23
  • Narrowed the scope of the Custom CSS setting to prevent sitewide CSS issues.


  • 2017-02-15
  • Added the ability to completely customize the look of the dialog by modifying the CSS.


  • 2017-02-11
  • Fixed CSS defining width for text fields affecting more than intended


  • 2015-12-17
  • Verified compatibility with WordPress 4.4. Updated Behavior tab in settings to clear up how the jQuery selector gets used.


  • 2015-09-25
  • Rearranged settings into tabs for readability and to reduce the need to scroll. Added backgroundColor option.


  • 2015-09-24
  • Visual controls added to the admin page


  • 2015-09-14
  • Minor terminology updates.


  • 2015-09-14
  • Added option to change the jQuery selector, allowing you to affect what links are notified.


  • 2015-09-13
  • Updated default body text to better match compliance suggestions.


  • 2015-08-16
  • Added options for visual indication of an external link and whether or not to open external links in a new window/tab.


  • 2015-08-15
  • Initial release