How to fake the referer?

hi!
http://www.blackhatworld.com/blackhat-seo/members/16604-seikooc.html can we use your method with iframing? Will it hide referer? Or what is the best method to use with iframing(DMR or cpa redirection)? Any help, will be appreciated...
 
I read in another thread that it is possible to fake or hide referer using iframing, just want to make a sure!
 
hi!
seikooc can we use your method with iframing? Will it hide referer? Or what is the best method to use with iframing(DMR or cpa redirection)? Any help, will be appreciated...

I do believe you can use this method with iFraming. But I would suggest you do this: implement this script in your WH site then iFrame as you wish using the redirect from WH site to this link http://www.svyt.com/referral.php and see what it says the referer is.

That would tell you exactly what's going on.

Please post back and tell us how it worked out.
 
I do believe you can use this method with iFraming. But I would suggest you do this: implement this script in your WH site then iFrame as you wish using the redirect from WH site to this link http://www.svyt.com/referral.php and see what it says the referer is.

That would tell you exactly what's going on.

Please post back and tell us how it worked out.


This link doesn't work, do you have another one, or php code to check referrals?
 
Ok... Before I wrote this I was banned in one network, because my redirection method was defective and it only works in Mozilla, not in Explorer, I was stupid and didn't check different browsers. So this script that you wrote is working, I checked it and also it works in different browsers, this is the list of browser, where your script works using iframing:
1. Opera
2. Internet Explorer
3. Safari
4. Google Chrome
5. Mozilla
Give you cool thanks!!!!!!!!
 
Ok... Before I wrote this I was banned in one network, because my redirection method was defective and it only works in Mozilla, not in Explorer, I was stupid and didn't check different browsers. So this script that you wrote is working, I checked it and also it works in different browsers, this is the list of browser, where your script works using iframing:
1. Opera
2. Internet Explorer
3. Safari
4. Google Chrome
5. Mozilla
Give you cool thanks!!!!!!!!

Glad you like it and really glad that it works on all of those!!! Remember to think about using DMR's as well to blank traffic where you do not need to fake it. Check out my other script: http://www.blackhatworld.com/blackh...0996-blank-referer-v2-0-meta-refresh-dmr.html
 
Hey seikooc,

Thanks for the great script.

Can you help me with something on it, though?

I need one referrer to go to one of many random urls that I will provide within the file.

- I will be making several of these redirect pages
- They will all be showing the same referrer, say mainsite.com/index.html
- I will have a separate $merchanturls for each redirect page.

So redirect page with $merchanturls[1] = "http://myurl1a.com"; or "http://myurl1b.com" or "http://myur1c.com", etc.

And redirect page with $merchanturls[2] = "http://myurl2a.com"; or "http://myurl2b.com" or "http://myur2c.com", etc.

Make sense?

Can you help me with this? I'd really, REALLY appreciate it!

And I'm no coder, as you may be able to tell! ;-)
 
Thank you , i will test it and leave a comment about it that works or not.
 
So is this safe to use it? I have no problem to redirecting but ... idk... cause im newbie
 
Can i use this for many other offers(fake refer) if i put the same offers on my index page?
 
Ok.... I think this will work for you... Put the first code in the beginning of your index page.

Code:
<?php include("filename.php"); ?>

See filename.php above. That should be whatever you name the next file code below... So copy the code below into a php file. Name it whatever you want and call it by using the code above (and change to whatever your file name is) in your index page.

Code:
<?php
 
// call this page with ?ref=1 or 2 or 3, any number pointing to one of the links from $merchanturls array.
 
$merchanturls[0] = $_SERVER['PHP_SELF'];
 
$ref=$_GET["ref"];
 
if (!empty($ref)) {
 
echo "<html><body onload=\"javascript:frmClickTracking.submit();\">";
 
echo "<form action=\"" . $merchanturls[0] . "\" method=\"post\" name=\"frmClickTracking\">";
 
echo "<input type=\"hidden\" name=\"ref\" value=\"" . $ref . "\" />";
 
echo "</form></body></html>";
 
exit;
 
}
 
$merchanturls[dell] = "http://dell.com";
 
$merchanturls[yahoo] = "http://yahoo.com";
 
$ref = $_POST['ref'];
 
if (!empty($ref)) {
 
if ($ref<=count($merchanturls)) {
 
$targeturl = $merchanturls[$ref];
 
if (!strpos($targeturl,"?")) {
 
echo "<html><body onload=\"javascript:frmClickTracking2.submit();\">";
 
echo "<form action=\"" . $targeturl . "\" method=\"get\" name=\"frmClickTracking2\">";
 
echo "</form></body></html>";
 
exit;
 
} else {
 
$pos = strpos($targeturl,"?");
 
$pageurl = substr($targeturl,0,$pos);
 
echo "<html><body onload=\"javascript:frmClickTracking3.submit();\">";
 
echo "<form action=\"" . $pageurl . "\" method=\"get\" name=\"frmClickTracking3\">";
 
$params = substr($targeturl,$pos+1);
 
$aparams = explode("&",$params);
 
for ($k=0;$k<count($aparams);$k++) {
 
$aparamvalues = explode("=",$aparams[$k]);
 
if (empty($aparamvalues[1])) $aparamvalues[1]="";
 
echo "<input type=\"hidden\" name=\"" . $aparamvalues[0] ."\" value=\"" . $aparamvalues[1] . "\" />";
 
}
 
echo "</form></body></html>";
 
exit;
 
}
 
}
 
}
 
?>

Now see in the code above $merchanturls[dell] = "http://dell.com";

[dell] is your code to send to "http://dell.com" ... you can name [dell] to whatever like [comp2323230] ....

So in the example above and what is in the code you should be able to redirect to dell by using the following: hxxp://yoursite.com?ref=dell (change to http)

If /?ref=dell is not there then it will stop at your index page.

Let me know if this works. Also a thanks would be nice :)

I have followed as mentioned but i couldnt see the referer in g****le analytics.....

Does anybody able to achieve it?
 
But in g***le analytics it is not showing anything.... :(

Here is the result in g******le analytics:

Pages Pageviews % Pageviews

/insurance/?ref=utube 1 20.00%
/insurance/?ref=rdf 1 20.00%
/insurance/?ref=ezine 1 20.00%
/insurance/?ref=twter 1 20.00%
/insurance/?ref=fcbook 1 20.00%



Efit:
Now when i click link hxxp://abc.com/insurance/?ref=utube then it is redirecting to youtube .
Is it right or am i doing something wrong?
 
Last edited:
What if I want to fake my search traffic to be email traffic? Do I need this solution?
 
Just wondering if people are faking the referrer to keep their marketing plans secret basically or some other reasons?
 
Back
Top