Double Meta Refresh and redirects

Status
Not open for further replies.
whats the difference if you use the back slashes:


echo "<meta http-equiv=\"refresh\" content=\"0;url=URL2\">";


Or no slashes:


echo '<meta http-equiv="refresh" content="0;url=URL">


I've seen both types of code, and both seem to work.
 
Last edited:
The question must be dumb, but can i use this code to stuff ebay auctions/

Thanks.
 
what is alternative traffic source to buyhitscheap that can be worked when you do double meta refresh or accepted by cpa network?
 
Fantastic information...Gonna come in handy trying to implement Hardsoft and HavokB8's email/zip submit methods. Thanks to all
 
what is alternative traffic source to buyhitscheap that can be worked when you do double meta refresh or accepted by cpa network?

if bhc doesn't work I don't see why any other ones would work?

IT must work somewhat, just some hits are lost, I am running a test right now
 
if bhc doesn't work I don't see why any other ones would work?

IT must work somewhat, just some hits are lost, I am running a test right now

My guess why it doesn't work is that BHC is using iFrames to generate their hits. So by loading up one page with a load of iFramed pages, they could charge 20 people for only one real visitor. So by the time that your iFrame redirects twice then starts to load the final page and cookie, the visitor has already moved on to the next page or closed the popup. I have not done any testing on it though so I can't say for certain.
 
And perhaps someone can clarify for me as well. My traffic at times originates from tinyurl then goes through my intermediary site, and is permanently redirected to my affiliate networks offer.

Should I be using this type of meta-refresh for those purposes?
 
Is there any reason why this combination of pages wont accomplish the same thing ?

Page 1

<title>URL1 here</title>
<meta name="robots" content="noindex,nofollow">
<script>window.location="http://www.URL2.com";</script>
<meta http-equiv="refresh" content="1; url=http://www.URL2.com">

</head>

Page 2
<title>URL2 here</title>
<meta name="robots" content="noindex,nofollow">
<script>window.location="http://www.affiliate line here.com";</script>
<meta http-equiv="refresh" content="1; url=http://www.affiliate link here.com">

it really wouldn't matter for Page1 to be php and be plain html but for Page2 I would suggest it php so it could check that the referer from Page1 is blank for sure because if Page1 is sending a referer header than it is likely that Page2 would also send a referer and the affiliate companies would be able to see where your visitors are coming from.
 
Using the same code and keep getting syntax errors. Anyone have any suggestions?
Here is the error I'm getting.
Parse error: syntax error, unexpected $end in /mysite/my.php on line 15

Ok can anyone help the noob here ...

This is what I have ...

Page 1

<body>

<?php



{



echo "<meta http-equiv=\"refresh\" content=\"0;url=URL2\">";



}



?>


</body>

Then Page 2 here ...

<body>

<?php

$referer = $_SERVER['HTTP_REFERER'];

if($referer == "")

{

echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.affiliatesitehere.com\">";

}

?>


</body>

Saved as Meta1.php and Meta2.php and uploaded to my site. All I get is page upload errors ??? Can someone help me with what I am missing ?
 
Last edited:
you dont need the body tags.

I wasn't using the body tags and I think I go that problem figured out. There were some extra spaces at the end of the line that I deleted and it redirects to URL2. Now my problem is this:

Parse error: syntax error, unexpected T_STRING in mysite.com/my1.php on line 5

Here is the code if it helps.
Code:
<?php
    $referer = $_SERVER['HTTP_REFERER'];
    if($referer == "http://www.mysite/my.php\")
    {
        echo "<meta http-equiv=\"refresh\" content=\"0;url=http://myaffiliateid.com\">";
    }
?>
 
Last edited:
does this method work %100 percent? I think i tried it , and they can still tell the referer?
 
Ok - I deleted everything and started over from scratch using this code. No script errors. I did have to leave the [if($referer == "")} blank. Don't know if that is right. Hopefully this helps someone else.
So basically this is how it would go.

a href link to URL1 which sends referer

URL1
PHP:
<?php
		echo "<meta http-equiv=\"refresh\" content=\"0;url=URL2\">";
?>
URL2
PHP:
<?php
	$referer = $_SERVER['HTTP_REFERER'];
	if($referer == "")
	{
		echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatelink.com\">";	
	}
?>
 
my cpa company definately checks referers, and i they dont like where my traffic comes from, will this definately work to hide the referer, If instead of putting a direct link to the cpa offer, i put a link to url1, which then directs them to the offer though url 2.

is this a tried and true way to hide the true refferer?
 
I just wanted to say thanks for the info in the thread - finally a nice simple explanation of the basics without all the hype
 
Thanks for this as well. Can someone confirm that this method is applicable to forum stuffing? i.e the traffic from the forum will not show the forum as the referrer? Thanks
 
No, it was directed at dabucks. There is nothing you can do to blank the referrer from a forum. The best you can do is make it very hard to detect. Genjutsu from a few posts above has a set of methods for sale that you may want to check out.
Was this directed to my question?
 
I'm currently using this double meta refresh, if I'm banned frm the network I'll let you know, lol.

Not very reassuring though.
 
Status
Not open for further replies.
Back
Top