What would be the best way to redirect users who request an external URL, to a sort of good-bye page?
I know I could work hard to install some sort of mod_rewrite-like module. But can’t I do some sort of Page_OnRequest type function in global.asax or the master pages?
Easiest way is to use jQuery to hook the click event on all the tags on the page:
Any link that gets clicked fires the event handler. External URLs will cause the page outside_link.aspx to loaded with the destination url in the query string. Internal URLs will behave normally.
Simple.