Welcome to WebmasterWorld Guest from 54.81.116.187
Forum Moderators: incrediBILL
http://www.example.com
as opposed to:
http://www.example.com/mydir/links.php?linkid=aslkjdf019
I'd just like to have my site referrals stand out a bit better.
[edited by: encyclo at 2:52 pm (utc) on Feb. 27, 2006]
[edit reason] switched URLs to example.com [/edit]
You can find an example to set the REFERER header in an HTTP request here:
[microsoft.com...]
(less than 10 lines of Perl code)
Is there a program that will 'spoof' a referrer. For instance, let's say I refer someone from my page (www.mysite.com/links/link.php?name=109437) to another site (www.yoursite.com). I'd like to spoof my referral url so that, when checking their tracking software, www.yoursite.com will show that my referral came from www.mysite.com.
Is this possible?
1. Transform your home page into an executable program:
www.mysite.com/index.cgi
2. On your link pages, use POST instead of GET to send visitors to index.cgi
For example:
<form method="post" action="http://www.mysite.com/">
<input type="submit" name="submit" value="http://www.otherdomain1.com/"><br>
<input type="submit" name="submit" value="http://www.otherdomain2.com/"><br>
<input type="submit" name="submit" value="http://www.otherdomain3.com/"><br>
<input type="submit" name="submit" value="http://www.otherdomain4.com/"><br>
</form>
3. Create a routine in index.cgi that checks whether a redirect must be executed (if not, display your home page)
When visitors click on a link, they are sent to [mysite.com...] (no need to add index.cgi!)
Depending on the "submit" value, they are immediately redirected to the site in question.
The webmaster of that site will see [mysite.com...] as the referer.
PS. You can use CSS to remove the borders from the input boxes so they look like real links.
What I do is this:
Link to a redir-page using a tag (PHP) like this > [mysite.com...]
Then, I have code in the redir.php page that checks for an existent $URL string and then redirects to the url using a meta tag (this makes it look to trackers as if the redir.php page was never even loaded). On the end of [yoursite.com,...] I add?SRC=MySite. This seems to work fine, and is much like your idea.