Double Meta Refresh and redirects

Status
Not open for further replies.
URL1
PHP:
<?php
	$referer = $_SERVER['HTTP_REFERER'];
	if($referer == "")
	{
		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\">";	
	}
?>


thankya very much, this is what i am looking for ;) I'm just wondering if to put it on freehost or on my website, most likely free host.
 
Last edited:
hehehe yep! definitely!

when i saw offercloak .. i think ... no way how can they get people paying for it.
 
Okay, I've read this thread about six times and read a few other on stuffing and I have a couple (probably stupid) questions. It doesn't appear as though this is a surefire method to stuff forums or other 3rd party sites (eboy...etc) as I don't expect Gen to give away the keys to the cookie stuffing castle in a post when he's selling a solution.

With that being said what exactly would this be used for? Is it just used to stuff people who show up at your site either through some link you have in an article you submitted somewhere or through a link in a search engine result? If that's the case then what's the advantage to stuffing with the meta-refresh technique instead of just putting some image on the landing page and using the image>htaccess>redirect method?
 
Last edited:
Ok, some of my links are working great but some of them give me this message and wont work..

"Parse error: syntax error, unexpected $end in /home/mydirectory/public_html/two/one.php on line 16"

The code should be working and i can not figure out why it is doing this...

Anyone?
 
thanks this is what i was looking for..:)
So can we put a final note on this.. SO what are right codes?
 
Final note* To those of yo asking "how do I cookie stuff with this, you shouldn't be stuffing cookie to begin with.

A final working code (as there are many iterations that will do different things, check for referrers in various ways, and have added security built in) that refreshes twice while checking for a blank referrer is:

PHP:
<?php
          echo "<meta http-equiv=\"refresh\" content=\"0;url=URL2\">";
?>
PHP:
<?php
     $referer = $_SERVER['HTTP_REFERER']; if($referer == "")
     {
          echo "<metahttp-equiv=\"refresh\"content=\"0;url=http://www.youraffiliatelink.com\">";    
     }
?>

Go buy Genjutsu's eBook if you want to learn how to cookie stuff.

thanks this is what i was looking for..:)
So can we put a final note on this.. SO what are right codes?
 
Hey, 2 page refreshes.

here is an idea. If your working with PHP. you can just pass a variable with your refresh on page 1 so if page 2 gets the variable it forwards you on to the offer - if however page 2 does not get the variable it runs the page as it.

Examples (3 pages)

Page 1 (your refresh page)
'test1.php'
------------------------ start
<?php
$var1 = "1";
$convar = $var1;

echo '<META HTTP-EQUIV="Refresh" CONTENT="1;URL=test2.php?var1='.$convar.'">';

?>
-------------------------end

Page 2(your test page)
'test2.php'
------------------------start
<?php

$var1 = $_GET['var1'];

echo $var1;

if ($var1 =='1') {
echo '<meta http-equiv="Refresh" content="0;URL=test3.php">';
}

?>
-------------------------end

So test2.php tests for a variable (in this case the number 1). If its their it will foward you on to test3.php or your affilate link... if however the variable ='s anything else but 1 it will do nothing ... so it will load the page as is.

I dont know if this will help anyone... but their it is.

Cheers
TM~
 
Does this work with BHC? It doesn't register buy hits cheap traffic with a double meta refresh in the stats..
 
Some browsers dont pass the referer to $_SERVER['HTTP_REFERER']; ... but 2 meta redirects would remove the referer...
 
Can anyone tell me how, instead of blanking out the referrer, I could set $referer = $_SERVER['HTTP_REFERER']; to some legit landing page and then have url2 check for that value instead of a blanked out referrer?

Basically, I'm trying to avoid blank referrers by setting that $referer variable to a value. Anyone know if this is possible and what the syntax would be?
 
This code is working with me to redirect to same page

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

But my second question is how if i want to redirect to a blank page...???

what code/script should i use...???

Please share your knowledge to me because i need it.

thanks
 
thanks guys, this shit worked for me ...i have enhanced it with my custom code thou.
 
haha depends on the size of the script ... if it is just a couple lines of code than i don't do that neither ... but what if the script consist out of several files having more than a thousand lines of code... than its a little different
 
I'm working on a batch file that will create new sets of .php files based on prompted input, but I am having a hard time getting the ">" character to print to a new file.... any body already do this already and wanna share?
 
Can anyone tell me how, instead of blanking out the referrer, I could set $referer = $_SERVER['HTTP_REFERER']; to some legit landing page and then have url2 check for that value instead of a blanked out referrer?

Basically, I'm trying to avoid blank referrers by setting that $referer variable to a value. Anyone know if this is possible and what the syntax would be?

Short answer is, you can't.

Long answer: you can set $referer or $_SERVER['HTTP_REFERER'] to anything you like, but you can't "push" that string to the client. It's entirely the client's choice if it wants to remember a referrer, if it wants to report it to a server and if it wants to be honest about it or not. Take a look at tools like curl or wget, they have options to let you set the referrer to anything you want. There are plugins for Firefox that let you do the same, search for RefControl.

The referrer is submitted from the client to the server if the client chooses to do so.
 
I think my statement was true, but there seem to be nice 'workarounds': http://http://www.blackhatworld.com/blackhat-seo/cloaking-content-generators/22533-link-cloakers-maskers-redirects-keep-referrer.html.

You can't force a client to send a certain referrer, but it looks like you can trick at least those with JS enabled into it.
 
nope nothing really work for hostgator i tryed nearly every script and code out here. with double meta refresh i get only one succesful redirect second just shows blank page. other tehniques in affiliate logs shows unknow referer or possible email link.

Have anyone got javascript or some other code that will auto click on url in lading page i this this could work out...
 
i am not cookie stuffing here or sending junk traffic, i just need to send some emails and show in affiliate log that traffic is from mysite.com not gmail or somethink.

double meta refersh stucks on second redirect because i think somethink with this ode is wrong- $referer = $_SERVER['HTTP_REFERER']; if($referer == "")

when i remove it and make just plain 2 meta refresh it redirect successfully but shows real refer ...:(

maybe i will just make some landing page on domain so visitor will need to manually click on link...

but it would be better if could make working redirect.. Can someone help fixing this? :)
 
Last edited:
Status
Not open for further replies.
Back
Top