Double Meta Refresh With .htaccess Method

 

Results 1 to 8 of 8
I've been messing around with methods posted here and made a double meta refresh and ...
  1. #1
    digitalpower is offline Banned - see signature
    Join Date
    Dec 2008
    Location
    USA
    Posts
    303
    Thanks
    69
    Thanked 65 Times in 26 Posts

    Default Double Meta Refresh With .htaccess Method

    I've been messing around with methods posted here and made a double meta refresh and .htaccess combination cloaking method.

    Create page1.php that contains the following code:

    HTML Code:
    <html>
    <head>
    <?php
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.yourdomain.com/page2.php\">";
    ?>
    </head>
    <body>
    </body>
    </html>
    Create page2.php that contains the following code:

    HTML Code:
    <html>
    <head>
    <?php
        $referer = $_SERVER['HTTP_REFERER'];
        if($referer == "") {        
    	echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.yourdomain.com/page3.php\">";		
        }
    ?>
    </head>
    <body>
    </body>
    </html>
    Create page3.php that contains the following code:

    HTML Code:
    <html>
    <head>
    <?php
        $referer = $_SERVER['HTTP_REFERER'];
        if($referer == "") {        
    	echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatedomain.com?querystring=whatever\">";		
        }
    ?>
    </head>
    <body>
    </body>
    </html>
    Finally create a .htaccess file that contains the following:

    Code:
    Redirect 301 /page3.php http://www.youraffiliatedomain.com?querystring=whatever
    You need a web host that supports .htaccess and PHP for this to work so 000webh0st this will work great. When you send the user to page1.php either directly or from a hyperlink on another domain, the code above will blank the referrer and also make it so the user cannot see your affiliate link in the address bar of the web browser. In the case that the .htaccess file fails, the user will still be redirected to the affiliate link but it will be visible in the address bar. Please let me know if you see any issues with this or if you think this can be improved further.
    Last edited by digitalpower; 01-09-2009 at 12:56 AM. Reason: extra material added
    This member has been permanently banned from BHW.

  2. The Following 2 Users Say Thank You to digitalpower For This Useful Post:

    hyp959 (02-16-2009), syskill (01-15-2009)




  3. #2
    jaymartins is offline Newbies
    Join Date
    Jan 2009
    Posts
    31
    Thanks
    5
    Thanked 51 Times in 6 Posts

    Default Re: Double Meta Refresh With .htaccess Method

    WOW - Very well explained - I'm going to try this out tomorrow morning.

  4. #3
    zongoneri is offline Junior Member
    Join Date
    Jun 2008
    Posts
    107
    Thanks
    20
    Thanked 43 Times in 22 Posts

    Default Re: Double Meta Refresh With .htaccess Method

    I will try also, i give feedback a later... just testing 1st...

  5. #4
    Join Date
    Jan 2009
    Posts
    33
    Thanks
    7
    Thanked 74 Times in 6 Posts

    Default Re: Double Meta Refresh With .htaccess Method

    Hmm this seems to be exactly what I'm looking for, but it's not working for me. If one of you coding experts could help me out I'd really appreciate it.

    Basically, I want:

    1. a double meta refresh to blank referrer

    2. the address bar url to stay the same (to hide the fact that it is an affiliate link.)
    I have read that mod_rewrite works well for this purpose, but I don't know how to implement this.
    Last edited by pinholeglasses; 02-16-2009 at 07:31 AM.

  6. #5
    hyp959's Avatar
    hyp959 is offline Registered Member
    Join Date
    Feb 2008
    Posts
    53
    Thanks
    394
    Thanked 78 Times in 22 Posts

    Default Re: Double Meta Refresh With .htaccess Method

    great share
    i will try it
    thanks

  7. #6
    Join Date
    Jan 2009
    Posts
    33
    Thanks
    7
    Thanked 74 Times in 6 Posts

    Default Re: Double Meta Refresh With .htaccess Method

    Actually, I don't even need a double meta refresh. I just need to redirect my domain to the affiliate link AND maintain my domain url.

    So I want to put a link to h_ttp://w_ww.mydomain.com/ in an article, which redirects to h_ttp://affiliatelink.com/affid=34344 WITHOUT h_ttp://affiliatelink.com/affid=34344 showing up in the address bar. It would be great if mydomain.com showed up in google results as well.

    Anyone have a suggestion?

  8. #7
    Join Date
    May 2008
    Posts
    498
    Thanks
    43
    Thanked 88 Times in 48 Posts

    Default Re: Double Meta Refresh With .htaccess Method

    just iframe the offer... url will be the same in the address bar.
    Skype: Barbacamanitu
    Sig space for rent/trade. PM Me

  9. #8
    karpaltunnel is offline Registered Member
    Join Date
    Feb 2008
    Posts
    67
    Thanks
    1
    Thanked 11 Times in 6 Posts

    Default Re: Double Meta Refresh With .htaccess Method

    agree.. or insert ur code in a pic.. load it via iframe execute it as code 1 pixelx1pixel..

    and ur stuffing goes perfekt


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




BlackHatWorld on Twitter BlackHatWorld on FaceBook


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103