Hide Referral URL

alimkb

Newbie
Joined
Jan 17, 2008
Messages
7
Reaction score
0
Hi

I want to hide referral url , the same when you typing website address in address bar .

Thanks
 
link doesn't work
Sorry - no matches. Please try some different terms !
 
well i think that you can always do a permanent 301 redirect to your referal URL from one of your domain or sub-domain name.
 
Thanks for your reply .
I'm trying to hide referrer by swf file and JavaScript . but these methods
doesn't work .

154etyp.jpg
 
Hi,

This is first post on bhw forum for me .. :D
if you want to hide your urls and your hosting campaign allow php on your site you can use this method.

Code:
[COLOR="Silver"] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Title</title>
</head>

<body>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "your_analytics_id";
urchinTracker();
</script>
</body>
</html>
[/COLOR]


<?php



header ('Refresh: 1 ; url=http://your_affiliate_url');



?>

Paste above code on bottom of the html code... Another option without wait:

PHP:
<?php

header ("Location: http://your_affiliate_url");



?>

Save one of these php files as redirect.php or goto.php or whatever you want. Upload it to your host like:

http://yourdomaincom/special_offer/redirect.php

or another think ... use your imagination.. :)

Enjoy..
 
Last edited:
Hi,

This is first post on bhw forum for me .. :D
if you want to hide your urls and your hosting campaign allow php on your site you can use this method.

Code:
[COLOR="Silver"] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Title</title>
</head>

<body>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "your_analytics_id";
urchinTracker();
</script>
</body>
</html>
[/COLOR]


<?php



header ('Refresh: 1 ; url=http://your_affiliate_url');



?>

Paste above code on bottom of the html code... Another option without wait:

PHP:
<?php

header ("Location: http://your_affiliate_url");



?>

Save one of these php files as redirect.php or goto.php or whatever you want. Upload it to your host like:

http://yourdomaincom/special_offer/redirect.php

or another think ... use your imagination.. :)

Enjoy..


Hmm....
Warning: Cannot modify header information - headers already sent by (output started at /home3.....
 
Hmm....
Warning: Cannot modify header information - headers already sent by (output started at /home3.....

to make it work you need to modify a little the php, because output was allready given to browser from the google tracking code. so if you want to use php you need to modify the scripts.
PHP:
<?php
//put this code at the end of your page
echo '<script>window.location="http://your_affiliate_url";</script>';
?>

Let me know if it works.
 
you should put the php code
<?php
header ('Refresh: 1 ; url=http://your_affiliate_url');
?>
at the top of the page. and then you won't get a error message ;)

i use this redirect.php for my sites;

PHP:
<?
$site[1]="http://your_affiliate_url_1";
$site[2]="http://your_affiliate_url_2";
$site[3]="http://your_affiliate_url_3";
$site[4]="http://your_affiliate_url_4";

header ('Refresh: 1 ; url='.$site[$_GET['i']].'');
?>
usage=> http://www.yourdomain.com/redirect.php?i=1
http://www.yourdomain.com/redirect.php?i=2 etc.

or if you want use this code;

PHP:
<?
header ('Refresh: 1 ; url='.$_GET['i'].'');
?>

usage=> http://www.yourdomain.com/redirect.php?i=http://your_affiliate_url_1.com
http://www.yourdomain.com/redirect.php?i=http://your_affiliate_url_2.com etc.
 
Last edited:
Here is a meta refresh I use to hide my referrer info..


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Refresh" content="0;URL=AFFILIATE URL HERE">
<title>SITE TITLE HERE</title>
</head>
<body>
</body>
</html>

Hope this helps
 
Just put your affiliate link where it says "AFFILIATE URL HERE". Of course you copy the entire code to a paste it into a text document and save it as index.html or page1.html or wherever on your site you want it. Then ftp to your domains root directory.
 
i've noticed that when you use .htaccess to stuff a forum with an img...then try to point the img to a meta refresh or a php header() redirect...that their browser never follows through. It only goes 1 deep. but if you type in the link to the picture in your webbrowser it goes all the way? what gives?
 
Here is a meta refresh I use to hide my referrer info..


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Refresh" content="0;URL=AFFILIATE URL HERE">
<title>SITE TITLE HERE</title>
</head>
<body>
</body>
</html>

Hope this helps

I use a method very similar
 
i've noticed that when you use .htaccess to stuff a forum with an img...then try to point the img to a meta refresh or a php header() redirect...that their browser never follows through. It only goes 1 deep. but if you type in the link to the picture in your webbrowser it goes all the way? what gives?

I wonder the same thing
 
It will keep redirecting as long as the redirection is server based. So it WILL redirect for php header(). However, since meta refresh is a browser based redirection method, it will not work.
 
Back
Top