If I set a link with a target that opens like this in a new window will the website (i.e google) know what the referring website is.
Printable View
If I set a link with a target that opens like this in a new window will the website (i.e google) know what the referring website is.
Depends on your browser, but for the most part yes. :)
I guess your are right. Would you (or anybody) know how to stop a website from knowing what the referring website is.Quote:
# 0000000034 - TIME: 10.02.2004 - 17:22:49 IP: (IP) DNS-Name: (DNS-NAME) Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) FROM: http://filesharingtalk.com/index.php?showt...=0&#entry866763
use a good proxy
That not going to do me any good. I want my website to have links to other website but i do not what the other website to know that the referring website is mine.Quote:
Originally posted by MUSLEMAN@11 February 2004 - 16:50
use a good proxy
it should be possible to create a seperate page to load them from - as long as you can get a php enabled page which isnt located with your website (maybe a free service)
the code on your page to link to google would be stg like this:
then the dummy page would have code withCode:<a href="http://www.dumbpage.com/page.php?ref=http://www.google.com">Google</a>
Now i havent checked this, but i reckon it should workCode:
<?php
if ($_GET["ref"]) { $ref=$_GET["ref"] };
print("<meta http-equiv='refresh' content='0; url=$ref'>");
?>
does not seem to work :frusty: . do you know what is wrong ?Code:Parse error: parse error, unexpected '}' in /sda3-dev/webpages/departments/pdht/pdhtstudentwebpages/ariel_llamado/redirect.php on line 2
Chage:
if ($_GET["ref"]) { $ref=$_GET["ref"] };
to:
if ($_GET["ref"]) { $ref=$_GET["ref"]; }
It should be:
I doubt if this works, as I did this really fast. :PCode:<?php
$refresh = "";
$style = "";
$text = "";
$title = "";
if (!(isset($_GET[ref])))
{
$refresh = "";
$style = "\n\t\t\t\tcolor : #000000;\n\t\t\t\tfont-family : arial;\n\t\t\t\tfont-size : 12px;\n\t\t\t\tfont-weight : normal;\n\t\t\t\ttext-align : justify;\n\t\t\t\ttext-decoration : none;\n\t\t\t\ttext-style : normal;";
$text = "\n\t\tError: A URL was not specified.";
$title = "Error";
}
else
{
$refresh = "\n\t\t\t<meta http-equiv=\"refresh\" content=\"0; url=".$ref."\" />";
$style = "";
$text = "";
$title = "Redirecting...";
}
print("<"."?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?".">");
?>
<!doctype html public "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1.1-strict.dtd" />
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">
<head>
<meta name="author" content="haxor41789" />
<meta http-equiv="content-type" content="application/xml+xhtml; charset=UTF-8" /><?php print($refresh); ?>
<title><?php print($title); ?></title>
<style type="text/css" media="screen">
html, body
{
background-color : #ffffff;
border : 0ex #ffffff solid;<?php print($style); ?>
}
</style>
</head>
<body><?php print($text); ?>
</body>
</html>
as far as i can see that's just a pretty version of mine (with the missed out ";") ;) :P
Yeah, but your script would die if $ref wasn't set.
lol, k...fair enough :D as i say, didnt think too much about it :)
it works perfect. :P Do you any place were i could set this up for free ?Code:<?php
if ($_GET["ref"]) { $ref=$_GET["ref"]; }
print("<meta http-equiv='refresh' content='0; url=$ref'>");
?>
Do you guys know how to do this in javascript? It would help me out alot better. :D :P :lol:
Use document.referrer, but this isn't advised.
Am not exactly sure how to implement this? How would I work this?Quote:
Originally posted by haxor41789@13 February 2004 - 00:50
Use document.referrer, but this isn't advised.
Use it like any other JavaScript variable. For example...
This goes in the <head> tag of course. ;)Code:<script type="text/javascript">
var ref=document.referrer;
if(ref!=""&&ref!=null)
{
document.writeln("<meta http-equiv=\"refresh\" content=\"0; url="+ref+"\" />")
}
</script>
test
anyone feel free to use :D :P :lol:
It seems to work but I need to add some code to remove the ad frame. Do you know me how?
This looks like it could work but am not sure how to add it to the php script?
*update*
This also looks like it could work. How would I add it?Code:<script LANGUAGE="JavaScript">
if (top != self) {top.location.href = self.location.href;}
</SCRIPT>
That's illegal, BTW.
Try adding <plaintext> and </plaintext> around the ads script, and in CSS, do...
Code:plaintext
{
display : none;
left : -1000ex;
position : absolute;
top : -1000ex;
}
Really. I did not know that. I did not think so because it a site outside of members.lycos.co.uk. oh well i guess i can live with it. (the ad)
I can not edit any of the ad code.Quote:
Originally posted by haxor41789@13 February 2004 - 19:52
That's illegal, BTW.
Try adding <plaintext> and </plaintext> around the ads script, and in CSS, do...
Code:plaintext
{
display : none;
left : -1000ex;
position : absolute;
top : -1000ex;
}
am guesing if i edit
to be likeCode:print("<meta http-equiv='refresh' content='0; url=$ref'>");
it could work.Code:print("<meta http-equiv='refresh' content='0; url=$ref'>"<script LANGUAGE="JavaScript">
if (top != self) {top.location.href = self.location.href;}
</SCRIPT>);
I was just wondering, what's the reason for you not wanting to show your website as a referrer ?
I mean, I can't think of any good reason off my head right now... and HTTP Referrers is an important thing for webmasters (to know where their traffic is coming from), for many reasons.
Just wondering.
Btw, I believe your last piece of code would generate a parse error.
I want to link to sites that..... may not approve of the subject.Quote:
Originally posted by Ynhockey@13 February 2004 - 23:30
I was just wondering, what's the reason for you not wanting to show your website as a referrer ?
I mean, I can't think of any good reason off my head right now... and HTTP Referrers is an important thing for webmasters (to know where their traffic is coming from), for many reasons.
Just wondering.
Btw, I believe your last piece of code would generate a parse error.
do you know how to make it work. php is not my forteQuote:
I believe your last piece of code would generate a parse error.
You're treating $ref as a string literal without an unescape -- $ is a reserved character.
That should do it. :)Code:echo '<meta http-equiv="refresh" content="0; url=';
echo $ref;
echo '" />';
echo "<meta http-equiv='refresh' content='0; url='".$ref."'>\n
<script type=\"text/javascript\">\n
if (top != self) \{ top.location.href = self.location.href; }\n
</script>";
There's still a slight chance that it will generate a parse error (didn't test it), but i think it won't.
Good luck :)
This works perfect now. Thanks everybody. :DCode:<?php
if ($_GET["ref"]) { $ref=$_GET["ref"]; }echo '<meta http-equiv="refresh" content="0; url=';
echo $ref;
echo '" />';
echo '<script language="javascript"><!--
if (self.location.href != top.window.location.href)
{ top.window.location.href = self.location.href }
//--></script> ';
?>
Test
Special thanks goes to haxor41789 for the php help. :lol:
Works in both Mozilla and Internet Explorer even with ad muncher running. :rolleyes:
Good job. :)
I decided to add an link too. I find it kind of cumbersome to use a bunch of echo(s).Code:<?php
if ($_GET["ref"]) { $ref=$_GET["ref"]; }echo '<meta http-equiv="refresh" content="0; url=';
echo $ref;
echo '" />';
echo '<script language="javascript"><!--
if (self.location.href != top.window.location.href)
{ top.window.location.href = self.location.href }
//--></script> ';
echo '<br>';
echo '<a href="';
echo $ref;
echo '">';
echo $ref;
echo '</a>';
?>
Then make it one echo. :)
Code:<?php
if isset(($_GET[ref]))
{
$ref = $_GET["ref"];
echo '<meta http-equiv="refresh" content="0; url='.$ref.'" />';
echo '<script language="javascript">if (self.location.href != top.window.location.href) { top.window.location.href = self.location.href }</script><br><a href=".$ref.">'.$ref.'</a>';
}
else
{
alert("No link specified.");
history.go(-1);
}
?>
It looks very good but am getting this error.Quote:
Parse error: parse error, unexpected T_ISSET, expecting '(' in redirect.php on line 2
Shit...
That should do it. :)Code:<?php
echo '<'.'?xml version="1.0" encoding="UTF-8" standalone="yes" ?'.'>\n<!doctype html public "-//W3C//DTD XHTML 1.1" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">\n<head>\n';
if (isset($_GET[ref]))
{
$ref = $_GET["ref"];
echo '<meta http-equiv="refresh" content="0; url='.$ref.'" />\n<script language="javascript">if (self.location.href != top.window.location.href) { top.window.location.href = self.location.href }</script><br><a href=".$ref.">'.$ref.'</a>';
}
else
{
alert("No link specified.");
history.go(-1);
}
?>
</head>
<body>
</body>
</html>
Now it says that. is a \n a line break ? i removed all the \n and i getQuote:
\n\n\n\n
Fatal error: Call to undefined function: alert() in redirect.php on line 10
Do i have to use a bunch of echo(s) of something ?Quote:
Fatal error: Call to undefined function: alert() in redirect.php on line 10
Damn... forgot to echo the last few lines...
[code]<?php
echo '<'.'?xml version="1.0" encoding="UTF-8" standalone="yes" ?'.'>\n<!doctype html public "-//W3C//DTD XHTML 1.1" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">\n<head>\n';
if (isset($_GET[ref]))
{
$ref = $_GET["ref"];
echo '<meta http-equiv="refresh" content="0; url='.$ref.'" />\n<script language="javascript">if (self.location.href != top.window.location.href) { top.window.location.href = self.location.href }</script>
'.$ref.'\n';
}
else
{
echo 'alert("No link specified.");\nhistory.go(-1);\n';
}
?>
</script>
</head>
<body>
</body>
</html>
Your javascript alert does not seem to work. So it now just a text message. It seems to work better now. Does not reload in a infinite loop. Thanks alot haxor41789. I really appreciate it. B) :P :D :lol:Code:<?php
echo '<'.'?xml version="1.0" encoding="UTF-8" standalone="yes" ?'.'><!doctype html public "-//W3C//DTD XHTML 1.1" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" /><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr"><head>';
if (isset($_GET[ref]))
{
$ref = $_GET["ref"];
echo '<meta http-equiv="refresh" content="0; url='.$ref.'" /><script language="javascript">if (self.location.href != top.window.location.href) { top.window.location.href = self.location.href }</script><br><br><br><br><a href=".$ref.">'.$ref.'</a>';
}
else
{
echo '<br><br><br><br>No link specified.';
}
?>
</head>
<body>
</body>
</html>
Test
Test 2
You can get the proxy ad-blcoking program The Proxomitron. It has an option to block referrer info.
How is that going to help me?Quote:
Originally posted by Arm@17 February 2004 - 01:50
You can get the proxy ad-blcoking program The Proxomitron. It has an option to block referrer info.
How is that going to help me? [/b][/quote]Quote:
Originally posted by Ariel_001+16 February 2004 - 21:26--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Ariel_001 @ 16 February 2004 - 21:26)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-Arm@17 February 2004 - 01:50
You can get the proxy ad-blcoking program The Proxomitron. It has an option to block referrer info.
:huh: It will fake your referrer and make the referrer always be the current site you are on. :)
How it will help me as a web master. I want to make links to some sites but do not want the sites to (easily) be able to trace links back to me