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

Need help with Double Meta Refresh!

Discussion in 'Black Hat SEO' started by blackhatnewb, May 7, 2010.

  1. blackhatnewb

    blackhatnewb Newbie

    Joined:
    May 7, 2010
    Messages:
    22
    Likes Received:
    0
    Hey, i'm trying to set up double meta refresh on one of my sites... I got a new domain and created 2 html files with the code in each file.. when I go to my site though it shows this http://i41.tinypic.com/xpnb7b.jpg

    any help is appreciated! thanks.
     
  2. blackhatnewb

    blackhatnewb Newbie

    Joined:
    May 7, 2010
    Messages:
    22
    Likes Received:
    0
    anyone done this before?
     
  3. blackhatnewb

    blackhatnewb Newbie

    Joined:
    May 7, 2010
    Messages:
    22
    Likes Received:
    0
    no php gurus here that no what's going on??
     
  4. masterfl

    masterfl Junior Member

    Joined:
    Apr 28, 2010
    Messages:
    160
    Likes Received:
    29
    Occupation:
    Fulltime Web Developer, Newbie IM
    Location:
    Philippines
    Home Page:
    post your code and i'll try to help you
     
  5. blackhatnewb

    blackhatnewb Newbie

    Joined:
    May 7, 2010
    Messages:
    22
    Likes Received:
    0
    ok I'll send you a PM
     
  6. Kingfresh

    Kingfresh Regular Member

    Joined:
    Jul 8, 2009
    Messages:
    374
    Likes Received:
    295
  7. GreyWolf

    GreyWolf Executive VIP Jr. VIP

    Joined:
    Aug 17, 2009
    Messages:
    1,930
    Likes Received:
    5,389
    Gender:
    Male
    Occupation:
    Artist / Craftsman
    Location:
    sitting at my PC
  8. masterfl

    masterfl Junior Member

    Joined:
    Apr 28, 2010
    Messages:
    160
    Likes Received:
    29
    Occupation:
    Fulltime Web Developer, Newbie IM
    Location:
    Philippines
    Home Page:
    i am almost done helping the guy, he is new to php/programming and the main problem is the files have .html extension but the coding is correct
     
  9. blackhatnewb

    blackhatnewb Newbie

    Joined:
    May 7, 2010
    Messages:
    22
    Likes Received:
    0
    alright I changed the 2.html files to .php and it's still showing me those tags on the site and not redirecting

    here is the code i'm using

    Page 1

    Code:
    html>
    <body>
    <?php echo "<meta http-equiv=\"refresh\"content=\"0;url=http://blogger064.byethost10.com/goto.php\">"; ?>
    </body></html>
     
     
     
    Page 2
     
    <html>
    <body>
    <?php
    $page1 = "[URL="http://www.google.com/"]http://www.google.com[/URL]"; $page2=" [URL]http://www.google.com/1[/URL]"; $page3 = " [URL]http://www.google.com/2[/URL]"; $page4= " [URL]http://www.google.com/3[/URL] $referer= $_SERVER['HTTP_REFERER']; $mypages = array($page1, $page2, $page3, $page4); $myrandompage= $mypages[mt_rand(0, count($mypages) -1)]; if($referer=="") { echo "<meta http-equiv=\"refresh\" content=\"0;url=$myrandompage\">";} else { echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.google.com\">"; } ?>
    </body>
    </html>

    these are both in .php format.. is the code correct? still showing tags on the site! =/
     
    Last edited by a moderator: May 7, 2010
  10. blackhatnewb

    blackhatnewb Newbie

    Joined:
    May 7, 2010
    Messages:
    22
    Likes Received:
    0
    code works!! yes! thanks for the help!
     
  11. GoldNotes

    GoldNotes BANNED BANNED

    Joined:
    Aug 15, 2009
    Messages:
    123
    Likes Received:
    28
    Does the above blank the referer? What do you tell your CPA networks when they question your traffic?
     
  12. blackhatnewb

    blackhatnewb Newbie

    Joined:
    May 7, 2010
    Messages:
    22
    Likes Received:
    0
    well... i'm assuming they won't e-mail me and ask me about my traffic.. if anything I will probably just get banned if they don't see what they like and then move on to the next network and adjust what i'm doing to not make it look obvious
     
  13. loclhero

    loclhero Supreme Member

    Joined:
    Jun 11, 2007
    Messages:
    1,453
    Likes Received:
    2,413
    Gender:
    Male
    Location:
    Copperhead Road
    This is the DMR I use

    Code:
    STEP 1 (URL 1)
    
    <?php
        $referer = $_SERVER['HTTP_REFERER'];
        if($referer != "")
        {
            echo "<meta http-equiv=\"refresh\" content=\"0;url=URL2\">";    
        }
    ?> 
    
    
    STEP 2 (URL 2 GOES TO CPA SITE)
    
    <?php
        $referer = $_SERVER['HTTP_REFERER'];
        if($referer == "")
        {
            echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatelink.com\">";    
        }
    ?> 
     
  14. blackhatnewb

    blackhatnewb Newbie

    Joined:
    May 7, 2010
    Messages:
    22
    Likes Received:
    0
    Does anyone know how to check this so I know the referer is hidden??
     
  15. 7878

    7878 Executive VIP Premium Member

    Joined:
    Jun 14, 2009
    Messages:
    1,382
    Likes Received:
    7,864
    You can check it here:

    Code:
    http://www.whatismyreferrer.com/
     
  16. blackhatnewb

    blackhatnewb Newbie

    Joined:
    May 7, 2010
    Messages:
    22
    Likes Received:
    0
    thanks man
     
  17. masterfl

    masterfl Junior Member

    Joined:
    Apr 28, 2010
    Messages:
    160
    Likes Received:
    29
    Occupation:
    Fulltime Web Developer, Newbie IM
    Location:
    Philippines
    Home Page:
    FYI, from my experience as a programmer, hiding the referrer isn't this easy as IE and Firefox (plus other major browsers), I believe this kid of method will work on firefox but try it in IE and you will see a different result

    please correct me if I am wrong
     
  18. gosu22

    gosu22 Junior Member

    Joined:
    Nov 6, 2008
    Messages:
    104
    Likes Received:
    12
    What's different in IE than firefox when hiding the referrer?
     
  19. masterfl

    masterfl Junior Member

    Joined:
    Apr 28, 2010
    Messages:
    160
    Likes Received:
    29
    Occupation:
    Fulltime Web Developer, Newbie IM
    Location:
    Philippines
    Home Page:
    i'm not very sure what the exact thing is but basically IE is here on this earth to make programmers like me suffer

    i programmed a similar script about 6 months to a year ago so I can't remember the specifics but if the problem is still there, when you test your referral script, the referrer will be hidden when you use FF but not IE (I believe the result for other browsers is the same with Firefox)
     
  20. 00CivicEX

    00CivicEX Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 3, 2009
    Messages:
    293
    Likes Received:
    214