"You are clicking to a 3rd party" link notification on CMS rich text?

I must make a lightbox for external clicks only.

I would like to set up the following

  1. Lightbox displays when clicking on external link interaction.
  2. Works as intended for static pages.
  3. Does NOT work on CMS Rich Text .

For example:
Blog with external links citation. When user clicks on external citation link, a lightbox needs to show up “This link / {{domain}} is not affilliate with this website.” notification then clcik on Proceed to 3r party website button.

Are you asking if this is possible, need pointers, or if someone could write this for you as a freelance project?