Unblockable Exit URL Redirector Script

22 replies
Folks,

I am looking for a PHP or Java Script to integrete in a PHP CMS, that enables to Redirect the Visitor when the script sense that the visitor is going away from the page. (Hit back button, hit refresh button and so on....)

It should be unblockable by all browsers.

May anyone suggest me one or share the codes. I will use it for personal purpose and not for comercial purpose at all.
Many Many Thanks
#exit #redirector #script #unblockable #url
  • Profile picture of the author NetMan
    ExitSplash
    Signature

    <!---
    IGNORANCE is not an excuse anymore, all you need is Automate Kit!
    ---/>

    {{ DiscussionBoard.errors[2755875].message }}
  • Hello,

    If i am not wrong, Exitsplash will show a Popup, what i want is, to Redirect the visitor Automatically, once he leaves the page.
    What ExitSplash will do is, it ill first show a Popup, which many will anyway close and ignore.
    Or cna what i want be achieved with Exit Splash?
    Signature
    "Attract Carefully, In case, It becomes a Reality" - Ankur Sancheti
    Learn Now!!!
    {{ DiscussionBoard.errors[2758724].message }}
  • Profile picture of the author newbim
    Hi FTM,

    Here's a post I made a while ago - the script is free, and easy to install if you read the instructions - The link is in the post.

    http://www.warriorforum.com/website-...free-code.html

    When I installed it, the new page loads under the old one - give it a go - you might like it.

    Hope this helps.

    Cheers,

    Newbim.
    Signature
    If what I said helps, let me know, throw me a 'thanks'.
    {{ DiscussionBoard.errors[2758734].message }}
  • Many Thanks NewBim.

    But, What i am looking for is:

    1- When the Visitor Exit, I do not want to show any Popup, but just a URL Redirect to another site, in the same page. So there is No need of clicking Yes or Cancel button.
    Can it be done with this Script?

    2- Is this script Unblockable by All Browsers, like ExitSplash is?

    Many Many Thanks
    Cheers
    Signature
    "Attract Carefully, In case, It becomes a Reality" - Ankur Sancheti
    Learn Now!!!
    {{ DiscussionBoard.errors[2758776].message }}
    • Profile picture of the author NetMan
      Originally Posted by FeatherTouchMarketings View Post

      Many Thanks NewBim.

      But, What i am looking for is:

      1- When the Visitor Exit, I do not want to show any Popup, but just a URL Redirect to another site, in the same page. So there is No need of clicking Yes or Cancel button.
      Can it be done with this Script?

      2- Is this script Unblockable by All Browsers, like ExitSplash is?

      Many Many Thanks
      Cheers

      I believe you have a nice source code example, not only well commented but a nice case study as well, you could try and experiment with, at least if you dot find what you're looking for

      Andre
      Signature

      <!---
      IGNORANCE is not an excuse anymore, all you need is Automate Kit!
      ---/>

      {{ DiscussionBoard.errors[2759923].message }}
  • Profile picture of the author radiotiger
    This is really new - automated chat agent and exit pop - zeescripts.com/main/php-script/virtual-sales-bot-chat-agents-live-helpers-exit-pops-script.html
    {{ DiscussionBoard.errors[2800603].message }}
    • Profile picture of the author NetMan
      Originally Posted by radiotiger View Post

      This is really new - automated chat agent and exit pop - zeescripts.com/main/php-script/virtual-sales-bot-chat-agents-live-helpers-exit-pops-script.html
      This is NOT NEW at all!! Far from it!! And has nothing to do with what is wanted in the OP. Should you read the thread...
      Signature

      <!---
      IGNORANCE is not an excuse anymore, all you need is Automate Kit!
      ---/>

      {{ DiscussionBoard.errors[2801881].message }}
      • Profile picture of the author homebizoutlook
        Uh .... any update on this, I would love to figure out to redirect from a splash page to my website on exit.
        Signature
        {{ DiscussionBoard.errors[3254847].message }}
        • Profile picture of the author Emilis Strimaitis
          This is my version of ExitSplash. I've wrote it myself, when I saw the cost of exitsplash.

          Okay, here we go.

          Place this code between the <head> tags of your page:

          Code:
                  <script type="text/javascript">
          var exit=true;
              function confirmExit()
                      {
                      if(exit)
                      location.assign('special.html');
                      if(exit)
                      return "***********************************************nn                                   W A I T ! ! !nn                        WHY ARE YOU LEAVING?nn           THIS OFFER IS *RISK FREE* REMEMBER?nn   YOU HAVE OUR 60 DAYS MONEY BACK GUARANTEE!nn***********************************************";
                      }
          </script>
          special.html - this is the page, where visitors will be moved once they try to leave your page (closing browser, tab, back button, refresh, stuff like that).

          return"" - you put your exit script message here. This is my default message I use for my pages. Some work needs to be done here. I haven't made fancy Javascript text editor that would turn your message into the code, so you will need to manually set up your message.

          \n - this stands for a break line (like <br /> in HTML)

          Now put this code instead of your normal <body> tag:

          Code:
              <body onbeforeunload="return confirmExit()">
          This will activate the script for this page.

          And finally, we want to disable script sometimes. For example, when customer hits add to cart button, we don't want him to see our special offer with a discount, since he is already purchasing, right?

          So you can disable this script on any link by adding little code to your anchor code:
          Code:
          <a href="YOURLINK" onclick="exit=false">Anchor text</a>
          or if it's an image:

          Code:
          <a href="YOURLINK"><img src="IMG_LOC" onclick="exit=false"></a>
          And that's that Free and powerful exit script

          P.S. sorry about horrible code formatting, was copy pasting from my website, and mozilla source code viewer is horrible..

          P.P.S. This is UNBLOCKABLE by ALL web browsers. However, this script best performs on Firefox. It sometimes gets weird with Chrome or IE (haven't testes with others). But it still works.

          Well anyhoo, this is a freeby, so you can go test it out. And if it's helpful, click thanks
          {{ DiscussionBoard.errors[3256911].message }}
          • Profile picture of the author SteveJohnson
            Originally Posted by Emilis Strimaitis View Post

            P.P.S. This is UNBLOCKABLE by ALL web browsers. However, this script best performs on Firefox. It sometimes gets weird with Chrome or IE (haven't testes with others). But it still works
            Of course it's blockable. All I have to do is turn off javascript in my browser.
            Signature

            The 2nd Amendment, 1789 - The Original Homeland Security.

            Gun control means never having to say, "I missed you."

            {{ DiscussionBoard.errors[3258799].message }}
          • Profile picture of the author JohnZ
            I responded to the whole thread but was trying to thank Emilis for the script...It's free and it works..I am using the script at the link in my signature now too...
            Signature
            {{ DiscussionBoard.errors[3452697].message }}
          • Profile picture of the author FreshJen
            The pop up message buttons aren't working properly. Seems like they're switched around. How do I fix this? So the buttons work right?
            Thanks! I'd really like to use you script.
            Jen
            {{ DiscussionBoard.errors[5565482].message }}
  • Profile picture of the author indianbill007
    Zend certified Php developer here. Ping me for the same
    {{ DiscussionBoard.errors[3257481].message }}
  • Profile picture of the author indianbill007
    Hello,

    Am a zend certifed Php 5 developed coded 100+ applications. Ping me up
    {{ DiscussionBoard.errors[3257498].message }}
  • Profile picture of the author markowe
    Wait, you want the visitor to have NO CHOICE - if they try to leave your site in ANY WAY, they get redirected somewhere, no exit popups, nothing? (I don't know where people saw exit popups mentioned in the original post).

    Well, good luck with that, for one thing I am not sure it's possible, for another, sorry, but I wouldn't help you if I knew! Trying to trap people on your site must be among the lowest forms of Internet marketing there are.
    Signature

    Who says you can't earn money as an eBay affiliate any more? My stats say otherwise

    {{ DiscussionBoard.errors[3257758].message }}
  • Profile picture of the author Emilis Strimaitis
    Well by unblockable I've meant it doesn't get blocked by browser or antiviruses. Of course you can turn off javascript, flash, graphics elements and enjoy the text web, but who would do that?
    {{ DiscussionBoard.errors[3258911].message }}
    • Profile picture of the author SteveJohnson
      Originally Posted by Emilis Strimaitis View Post

      Well by unblockable I've meant it doesn't get blocked by browser or antiviruses. Of course you can turn off javascript, flash, graphics elements and enjoy the text web, but who would do that?
      *I* do, when I get annoyed by redirector scripts
      Signature

      The 2nd Amendment, 1789 - The Original Homeland Security.

      Gun control means never having to say, "I missed you."

      {{ DiscussionBoard.errors[3259612].message }}
      • Profile picture of the author JohnZ
        Hey man, I really appreciate the script you shared it works great. Just want to add that I did put it right above the body tag in my page and also to prevent it from popping up after an optin I had to put this code in right before the button text if you're having trouble finding the spot in the aweber code.

        onclick="exit=false ;PreventExitPop=true" value="YES... Send My FREE Gift Now!"
        Signature
        {{ DiscussionBoard.errors[3452668].message }}
        • Profile picture of the author dean fergusson
          Originally Posted by JohnZ View Post

          Hey man, I really appreciate the script you shared it works great. Just want to add that I did put it right above the body tag in my page and also to prevent it from popping up after an optin I had to put this code in right before the button text if you're having trouble finding the spot in the aweber code.

          onclick="exit=false ;PreventExitPop=true" value="YES... Send My FREE Gift Now!"
          Can you please past the full aweber code here with it highlighted where you added this to it

          Thanks Dean
          {{ DiscussionBoard.errors[6915373].message }}
  • Profile picture of the author FirstSocialApps
    "Trying to trap people on your site must be among the lowest forms of Internet marketing there are."

    Got to agree with statement .. this has to be one of the lamest things I have ever heard.
    {{ DiscussionBoard.errors[6916983].message }}
  • Profile picture of the author goodsoloads
    Is there WP plugins which work like Emilis gave?
    Signature

    This is AWESOME! eCover design just got affordable & fast. No need to hire designers! Check it out Click here

    {{ DiscussionBoard.errors[9556602].message }}

Trending Topics