Question related to hiding refer link.

Discussion in 'Cloaking and Content Generators' started by acehigh, Oct 5, 2009.

  1. acehigh

    acehigh Newbie

    Joined:
    May 3, 2009
    Messages:
    22
    Likes Received:
    0
    Hey Guys,

    Been reading around this forum for quite some time now and learned allot in this field. I'm currently promoting a SMS quiz which converts really great for me. However since my traffic is generated by email and similar methods I get sometimes complains from the affiliate network.

    Thus, in order to avoid this I used the following script I found around here:

    Code:
        $szEntranceCode = 1234;
    
        $sziFrameToShow = '
                            <frameset rows = "590,*" frameborder = "0" border = "0" framespacing = "0">
                                <frame src = "http://www.goodurl.com" scrolling = "no" noresize>
                                <frame src = "./promo-inc/copyright.php"  scrolling="no" noresize>
                            </frameset>';
    
        $sziFrameToDie = '
                            <frameset rows = "590,*" frameborder = "0" border = "0" framespacing = "0">
                                <frame src = "http://www.badurl.com" scrolling = "no" noresize>
                                <frame src = "./promo-inc/copyright.php"  scrolling="no" noresize>
                            </frameset>';
    
    
        if (isset($_GET['mn']) && ($_GET['mn'] == $szEntranceCode))
        {
            echo '
                <html>
                    <head></head>
    
                    <body>
                        <form action = "'.'http://'.$_SERVER['HTTP_HOST'].'" method = "post" id = "form1">
                            <input type = "hidden"  name= "mn" value = "'.$szEntranceCode.'" />
                        </form>
    
                        <script language = "JavaScript"> 
                            document.getElementById(\'form1\').submit();
                        </script>
                    </body>
                </html>';
            
            die();
        }
    
        if ($_POST['mn'] == $szEntranceCode)
        {    
            echo $sziFrameToShow;
            die();
        }
        else
        {
            echo $sziFrameToDie ;
            die();
        }
    
    Which I modified a little to make it reading easier. In copyright I simply show contact information so the users won't contact the affiliate network directly. However for some reason it does not always seems to work, as my traffic doubles when I remove the script.

    My question; is there anybody who has a similar way (without using iFrames) to load the offer 'hiding' the affiliate ID?