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

Double Meta refresh query

Discussion in 'Black Hat SEO Tools' started by createrk, Oct 25, 2008.

  1. createrk

    createrk Junior Member

    Joined:
    Jan 5, 2009
    Messages:
    161
    Likes Received:
    17
    Hello,

    I am running across some trouble in Double Meta Refresh.

    I have the following code as below in say www.example.com created for meta refresh for placing the file.

    Both the files are hosted in same place fyi.

    index.php:
    Code:
    <?php
        $referer = $_SERVER['HTTP_REFERER'];
        if($referer == "")
        {
            echo "<meta http-equiv="refresh" content="0;url=http://www.example.com/url1.php">";
        }
    ?> 
    
    url1.php
    Code:
    <?php
        $referer = $_SERVER['HTTP_REFERER'];
        if($referer == "")
        {
            echo "<meta http-equiv="refresh" content="0;url=http://www.affiliatelink.com">";
        }
    ?> 
    Now in my incentive landing page when i click on the offer, the page goes to www.example.com and freezes. Its not proceeding further.

    Can someone help me out?

    Thanks
     
  2. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    In your index file there is no need for a check..make it a simple meta refresh..

    <meta http-equiv="refresh" content="0;url=http://example.com/"/>

    PLUS when your using PHP...before every quote " ...you have to put a slash for php can't read it...something liek this "

    Code:
    <?php
        $referer = $_SERVER['HTTP_REFERER'];
        if($referer == "")
        {
            echo "<meta http-equiv="refresh" content="0;url=http://www.affiliatelink.com">";
        }
    ?>
    
    
    There that should work for you

    Wow just realized that the slash in the code function is removed...just remember a SLASH before the QUOTES and a simple meta is only needed for the first one..
     
  3. createrk

    createrk Junior Member

    Joined:
    Jan 5, 2009
    Messages:
    161
    Likes Received:
    17
    WoW. It worked wonders for me:)

    I changed for just simple meta refresh without any check on referrer and it loaded perfectly .

    I didnt edit the url1.php and left it as it is.

    Thanks
     
  4. fatjack'sblackhat

    fatjack'sblackhat Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 16, 2008
    Messages:
    611
    Likes Received:
    129
    Occupation:
    college student
    Location:
    Florida
    Ok so I tried this and it did not work. This is what I did:

    I have a domain, lets say its cakes.c0m (its not but lets just say it is)
    I have a wordpress installed on that domain.

    I went into my ftp and made a new subfolder, I called it url1.

    I opened the new subfolder named url1

    I put two separate files in that subfolder. The two separate files were index.php and url1.php

    After I did that I tried to go to cakes.c0m/url1/index.php

    I got this message: You have reached this web page by typing "example.com", "example.net", or "example.org" into your web browser.

    These domain names are reserved for use in documentation and are not available for registration. See RFC 2606, Section 3.



    I know I probably sound pretty noob but Im really tryin. lol :)
    Thanks guys
     
  5. cocoi89ro

    cocoi89ro Newbie

    Joined:
    Feb 2, 2009
    Messages:
    45
    Likes Received:
    4
    only :
    Code:
    <meta http-equiv=refresh content=0;url=http://www.affiliatelink.com">
    
    no more 99999 *[COLOR=Red]"[/COLOR]*