1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how do I make one of those irritating pages where clicking back doesn't work?

Discussion in 'Black Hat SEO' started by turdface, Aug 9, 2016.

  1. turdface

    turdface Supreme Member

    Joined:
    Sep 3, 2010
    Messages:
    1,442
    Likes Received:
    193
    I feel like most of the sites I visit now do this. I click back to get back to google and nothing happens. I click back again and nothing happens. When it began I thought it was a problem with my mouse. Nope. Is this just a simple piece of code?
     
  2. turdface

    turdface Supreme Member

    Joined:
    Sep 3, 2010
    Messages:
    1,442
    Likes Received:
    193
    When I was clicking back on this page I thought it was doing that thing where you click back and it doesn't work, but it seems that this site appeared many times so when i click back it just goes back to a preceding version of the page.
     

    Attached Files:

  3. CRT

    CRT BANNED BANNED

    Joined:
    May 20, 2016
    Messages:
    795
    Likes Received:
    353
    Gender:
    Male
    There are ways to make the "back button" redirect to any page of your choosing. What is happening in your case is you are probably being redirected to the same page
     
  4. be9concepts

    be9concepts Newbie

    Joined:
    Jul 26, 2016
    Messages:
    18
    Likes Received:
    4
    Gender:
    Male
    Occupation:
    C.E.O.
    Location:
    Phoenix, Arizona
    Home Page:
    Here is the basic idea.

    When the user tries to leave your site you can have the document respond with a never ending loop. Most browsers can get out of this loop so newer version of the pop-up can figure out what browser you are using then duplicate what your alert looks like so you're not actually clicking the browser's alert you used to.

    If a link is available for a malicious website it is often easy to duplicate it. One of the biggest reasons so many exist is because they are easily deployed.

    HTML:
    <!DOCTYPE html>
    <html>
    <head>
        <title>DON't LEaveE</title>
    </head>
    <body>
    <script type="text/javascript">
        function looper(){
            confirm("Where the (*#$ are you going with this?");
                setTimeout(looper(), 100);
        }
                        setTimeout(looper(), 100);
    
    window.onbeforeunload = function() { // the user just tried to leave!
    
        return 'Ok FiNE Leaaaaave!';
    
    }</script>
    </body>
    </html>
    This is a basic example.