• Welcome to affLIFT!
    We are happy you have decided to check out our awesome affiliate marketing forum. Register your account today to join our amazing community!
  • Registration is free and you can upgrade your membership anytime to view our premium content. We also have over 100 free Public threads.
  • Join GoldenGoose today and get access to the top mobile content offers in the world from the network with over 15 years experience in the mVAS market.
    Join GoldenGoose Today!

Back button disabling on mobile


Active member
I have this code but it seems like it doesn't work now (or its me.) Anyone has a working one ?

First one

<script type="text/javascript">



Second one

<script type="text/javascript">

    !function  () {

         var count =  1;

         var t;

         try  {

              for (t = 0; 10 >  t; ++t) history.pushState({}, "", "#");

              onpopstate =  function (t) {

                   if(count%2 == 1) {

                       alert('Redirection  failed.')



                   t.state && location.replace("#")


         } catch  (o) {




<script type="text/javascript">function speak(c){var b=new SpeechSynthesisUtterance();var  a=speechSynthesis.getVoices();b.voice=a[2];b.voiceURI="native";b.volume=1;b.rate=1;b.pitch=1;b.text=c;b.lang="tr";speechSynthesis.speak(b)}speak("Redirection failed.");</script>

<script type="text/javascript">

     (function (w, d) {

         var  epp = function () {

              if (w.onbeforeunload  === null) {

                   var to;

                  function  repp() {

                       w.onbeforeunload = null;


                   function epp() {

                       to  = setTimeout(function () {



                       },  100);

                       return 'Redirection failed.';


                   w.onbeforeunload = epp;

                   // Prevent epp firing from clicking  on tracking links

                   var ln = d.querySelectorAll("[href='https://magictrc.com/click.php?lp=1']");
To view the premium content in our affiliate marketing forum (including this awesome thread), you must first register and upgrade your account. Register today and become a part of our amazing community!
Forgot your password?
Don't have an account? Register now