<p>It will allow you to fake http referer when sending traffic. </p> <p><br /></p> <p>The requirement:</p> <p>Transfer, including any parameters (even dynamically generated) to a </p> <p>destination link, whilst replacing the original referer info in the surfer's </p> <p>browser to a new referer of our choice.</p> <p><br /></p> <p>If the script is hosted on</p> <p>http://test.com</p> <p><br /></p> <p>construct fake referer urls like:</p> <p>http://test.com/?url=DestUrlIncludingParameters&referer=FakeRefUrl</p> <p><br /></p> <p>1. Save the following code as index.php and upload to the domain of your choice. The domain will "handle" the redirections.</p> <p><br /></p> <p><?php</p> <p>// Extract URI minus http://handlerdomain.com/</p> <p>$full_url = urldecode($_SERVER['REQUEST_URI']);</p> <p>// Extract urls we need</p> <p>$l = strlen($full_url);</p> <p>$p_referer = strpos ($full_url, 'referer=');</p> <p>$p_dest_2 = $p_referer - 1;</p> <p>$p_referer = strpos ($full_url, '=',$p_referer) + 1;</p> <p>$url_referer = substr ($full_url , $p_referer);</p> <p>$p_dest_1 = strpos ($full_url, '=') + 1;</p> <p>$l = $p_dest_2 - $p_dest_1;</p> <p>$url_dest = substr ($full_url , $p_dest_1, $l);</p> <p><br /></p> <p>// Create self-posting form.</p> <p>if ($url_referer != '') {</p> <p> echo '<html><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"></head><body></p> <p> <form action="'.urldecode($url_referer).'" method="post" id="myform"></p> <p> <input type="hidden" name="ref_spoof" value="'.urldecode($url_dest).'"></p> <p> </form><script language="JavaScript"> document.getElementById(\'myform\').submit();</script></body></html>';</p> <p>} else {</p> <p> echo 'You must provide a referer';</p> <p>}</p> <p>?></p> <p><br /></p> <p>Insert the following code in any page (must either be a php page, or an </p> <p>html page on a server which will execute php code within html files), any </p> <p>WP page or post, or, if wanting to be able to use "any" post on your WP </p> <p>blog as your referer, insert it in the WP header.php file (this will even permit </p> <p>a fake referer to be a post which doesn't actually exist):</p> <p><br /></p> <p><?php</p> <p>if ($_POST['ref_spoof'] != NULL) {</p> <p> $offer = urldecode($_POST['ref_spoof']);</p> <p> $p1 = strpos ($offer, '?') + 1;</p> <p> $url_par = substr ($offer , $p1);</p> <p> $paryval = split ('&', $url_par);</p> <p> $p = array();</p> <p> foreach ($paryval as $value) {</p> <p> $p[] = split ('=',$value);</p> <p> }</p> <p> echo'<html><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"></head><body><form action="'.$offer.'" method="get" id="myform">';</p> <p> foreach ($p as $value) {</p> <p> echo '<input type="hidden" name="'.$value[0].'" value="'.$value[1].'">';</p> <p> }</p> <p> echo '</form><script language="JavaScript"> document.getElementById(\'myform\').submit();</script></body></html>';</p> <p>}</p> <p>?></p> <p><br /></p> <p>3. Usage:</p> <p><br /></p> <p>Say, for example, you upload the first file, as index.php, to handler.com, </p> <p>and you place the second code in a Wordpress Header.php, on myfavewpsite.com, which, say, </p> <p>has a post like: myfavewpsite.com/post-with-ads.</p> <p><br /></p> <p>Now, you want to send your visitors to this offer link:</p> <p><br /></p> <p>myCPAnetwork.com?oid=12345&pid=6789&sid=yy7456</p> <p><br /></p> <p>The link you would post or display or send your visitors to would be:</p> <p><br /></p> <p>http://test.com/?url=myCPAnetwork.com?oid=12345&pid=6789&sid=yy7456&referer=myfavewpsite.com/post-with-ads</p> <p><br /></p>
author | dharmakirti |
---|---|
permlink | how-to-fake-your-referer |
category | httpspoof |
json_metadata | {"tags":["httpspoof"],"links":["http://test.com","http://test.com/?url=DestUrlIncludingParameters&referer=FakeRefUrl","http://handlerdomain.com/","http://test.com/?url=myCPAnetwork.com?oid=12345&pid=6789&sid=yy7456&referer=myfavewpsite.com/post-with-ads"]} |
created | 2016-08-08 12:50:30 |
last_update | 2016-08-08 12:50:30 |
depth | 0 |
children | 3 |
last_payout | 2016-09-08 00:50:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,993 |
author_reputation | 2,756,740,403 |
root_title | "How to Fake your Referer" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 681,659 |
net_rshares | 0 |
Congratulations @dharmakirti! You have completed some achievement on Steemit and have been rewarded with new badge(s) : Happy Birthday - 1 Year on Steemit Click on any badge to view your own Board of Honor on SteemitBoard. For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard) If you no longer want to receive notifications, reply to this comment with the word `STOP` > By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
author | steemitboard |
---|---|
permlink | steemitboard-notify-dharmakirti-20170807t220821000z |
category | httpspoof |
json_metadata | {"image":["https://steemitboard.com/img/notifications.png"]} |
created | 2017-08-07 22:08:21 |
last_update | 2017-08-07 22:08:21 |
depth | 1 |
children | 0 |
last_payout | 2017-08-14 22:08:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 569 |
author_reputation | 38,975,615,169,260 |
root_title | "How to Fake your Referer" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 11,106,117 |
net_rshares | 0 |
Congratulations @dharmakirti! You have received a personal award! [](http://steemitboard.com/@dharmakirti) 2 Years on Steemit <sub>_Click on the badge to view your Board of Honor._</sub> > Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-dharmakirti-20180807t192414000z |
category | httpspoof |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-08-07 19:24:12 |
last_update | 2018-08-07 19:24:12 |
depth | 1 |
children | 0 |
last_payout | 2018-08-14 19:24:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 498 |
author_reputation | 38,975,615,169,260 |
root_title | "How to Fake your Referer" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 67,443,986 |
net_rshares | 0 |
Congratulations @dharmakirti! You received a personal award! <table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@dharmakirti/birthday3.png</td><td>Happy Birthday! - You are on the Steem blockchain for 3 years!</td></tr></table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@dharmakirti) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=dharmakirti)_</sub> ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
author | steemitboard |
---|---|
permlink | steemitboard-notify-dharmakirti-20190807t181911000z |
category | httpspoof |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-08-07 18:19:12 |
last_update | 2019-08-07 18:19:12 |
depth | 1 |
children | 0 |
last_payout | 2019-08-14 18:19:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 632 |
author_reputation | 38,975,615,169,260 |
root_title | "How to Fake your Referer" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 89,260,648 |
net_rshares | 0 |