create account

How to Fake your Referer by dharmakirti

View this thread on: hive.blogpeakd.comecency.com
· @dharmakirti ·
How to Fake your Referer
<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&amp;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 &quot;handle&quot; the redirections.</p>
<p><br /></p>
<p>&lt;?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 '&lt;html&gt;&lt;head&gt;&lt;META NAME=&quot;ROBOTS&quot; CONTENT=&quot;NOINDEX, NOFOLLOW&quot;&gt;&lt;/head&gt;&lt;body&gt;</p>
<p>    &lt;form action=&quot;'.urldecode($url_referer).'&quot; method=&quot;post&quot; id=&quot;myform&quot;&gt;</p>
<p>    &lt;input type=&quot;hidden&quot; name=&quot;ref_spoof&quot; value=&quot;'.urldecode($url_dest).'&quot;&gt;</p>
<p>    &lt;/form&gt;&lt;script language=&quot;JavaScript&quot;&gt; document.getElementById(\'myform\').submit();&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;';</p>
<p>} else {</p>
<p>    echo 'You must provide a referer';</p>
<p>}</p>
<p>?&gt;</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 &quot;any&quot; 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>&lt;?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 ('&amp;', $url_par);</p>
<p>    $p = array();</p>
<p>    foreach ($paryval as $value) {</p>
<p>        $p[] = split ('=',$value);</p>
<p>    }</p>
<p>    echo'&lt;html&gt;&lt;head&gt;&lt;META NAME=&quot;ROBOTS&quot; CONTENT=&quot;NOINDEX, NOFOLLOW&quot;&gt;&lt;/head&gt;&lt;body&gt;&lt;form action=&quot;'.$offer.'&quot; method=&quot;get&quot; id=&quot;myform&quot;&gt;';</p>
<p>    foreach ($p as $value) {</p>
<p>        echo '&lt;input type=&quot;hidden&quot; name=&quot;'.$value[0].'&quot; value=&quot;'.$value[1].'&quot;&gt;';</p>
<p>    }</p>
<p>    echo '&lt;/form&gt;&lt;script language=&quot;JavaScript&quot;&gt; document.getElementById(\'myform\').submit();&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;';</p>
<p>}</p>
<p>?&gt;</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&amp;pid=6789&amp;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&amp;pid=6789&amp;sid=yy7456&amp;referer=myfavewpsite.com/post-with-ads</p>
<p><br /></p>
properties (22)
authordharmakirti
permlinkhow-to-fake-your-referer
categoryhttpspoof
json_metadata{"tags":["httpspoof"],"links":["http://test.com","http://test.com/?url=DestUrlIncludingParameters&amp;referer=FakeRefUrl","http://handlerdomain.com/","http://test.com/?url=myCPAnetwork.com?oid=12345&amp;pid=6789&amp;sid=yy7456&amp;referer=myfavewpsite.com/post-with-ads"]}
created2016-08-08 12:50:30
last_update2016-08-08 12:50:30
depth0
children3
last_payout2016-09-08 00:50:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,993
author_reputation2,756,740,403
root_title"How to Fake your Referer"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id681,659
net_rshares0
@steemitboard ·
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)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-dharmakirti-20170807t220821000z
categoryhttpspoof
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-08-07 22:08:21
last_update2017-08-07 22:08:21
depth1
children0
last_payout2017-08-14 22:08:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length569
author_reputation38,975,615,169,260
root_title"How to Fake your Referer"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id11,106,117
net_rshares0
@steemitboard ·
Congratulations @dharmakirti! You have received a personal award!

[![](https://steemitimages.com/70x70/http://steemitboard.com/@dharmakirti/birthday2.png)](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**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-dharmakirti-20180807t192414000z
categoryhttpspoof
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-08-07 19:24:12
last_update2018-08-07 19:24:12
depth1
children0
last_payout2018-08-14 19:24:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length498
author_reputation38,975,615,169,260
root_title"How to Fake your Referer"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,443,986
net_rshares0
@steemitboard ·
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!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-dharmakirti-20190807t181911000z
categoryhttpspoof
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-08-07 18:19:12
last_update2019-08-07 18:19:12
depth1
children0
last_payout2019-08-14 18:19:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length632
author_reputation38,975,615,169,260
root_title"How to Fake your Referer"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,260,648
net_rshares0