If I send a page from domainA to domainB which automatically redirects via javascript to DomainC, will DOmainC see the referrer as DomainB?
Do redirected pages show referrer?
Collapse
X
-
Hypo, usually the referrer wont carry through in that situation. You may see some of the referrers show, but not all, when you redirect like that wierd things happen to the referrers.
------------------
Smile and Be Happy
Lightning Free Hosting
Gay Free Hosting
Girls Host -
If you have a link on site A, which is forwarded via htaccess (deny all, then error 403) to site B, which is forwarded via htaccess to site C, which is forwarded via htaccess to site D... then site A will show on the referrers list.
Comment
-
Like TheFLY already said meta refresh is for linking realy not very nice. Copy past that PHP code into an file called for example 404.php and you will have your "redirect" system incl. refer forwarding.
<\?php
header ("Location: htp://ww.sponsor.net/");
?>
my 2 euro cents
(PS: remove the \ ..)
[This message has been edited by manuelk (edited 10-16-2001).]...Comment
-
HTML can“t do that for sure. If you want shoot me an email at [email protected] and I will host your PHP file on a domain till you got PHP enabled - if you reach over 100 GB / day we have to talk about it but before that its free of course ;o)...Comment
-
Hi,
you simply cant depend on the HTTP_REFFERER, because it
might not be present at all (netscape tends to this somethimes,
or the users site have some sort of proxy which filters it out)
or might even be incorrect. Either by incorrect browsers
or simply by faking it. Please note: every header from
useragent can and will be faked if nessecary.
So SiteA -> SiteB can look like it's from Site C
Remember that it's purpose is to Allows the client to specify, for the server's benefit, the address (URI) of the resource from which the request URI was obtained. This allows a server to generate lists of back-links to resources for interest, logging, optimized caching, etc. It also allows obsolete or mistyped links to be traced for maintenance.
------------------
wiZd0m
Thunder Free Adult Hosting - Fastest servers in the industry
Fortune Pussy Adult Links - The best in adult links----------
wiZd0mComment
-
Manuelk,
I do have php on my server, but the page getting loads of traffic rigth now is html, and I cant change that at the moment without losingal the traffic.
So I want to tredirect it to a php page using javascript, and that php page redirects using php code to the target page.
So PageA.html javascript redirect --> PageB.php php redirect --> PageC.
Will Page C show PageB as referrer?
Wizdom,
I understand I cant rely on http_refrrer, but its all I have at the moment. So how can I fake headers? That will simplify everything.Comment
-
wiZd0m is right of course. Hypo you can get what i think wiZd0m is talking about with that ..
Page A html -> Page B php -> Sponsor
Page A html will have a meta fresh of 0 a java script etc etc. - Page B shout work with the followign code:
<\?php
WRONG CODE (seel posts below)
?>
[This message has been edited by manuelk (edited 10-16-2001).]...Comment
-
What I have done is this - will it work? (All brackets replaced by square brackets)
Page A.html (getting the traffic) -
[SCRIPT LANGUAGE="JavaScript"]
[ !-- Begin
window.location="http://www.domain.com/redirect.php";
// End -->
[/script]
[noscript]
Page B.php
[?php
header ("Location: http://www.targetdomain.com/
?]
Should I change B.php and add the header code thingies?
[This message has been edited by Hypo (edited 10-16-2001).]Comment
-
Now I replaced PageB.php with -
[?php
header ("Request-URI: http://www.domain.com/redirect.php
header ("Content-Location: http://www.domain.com/redirect.php
header ("Location: http://www.targetdomain.com/
");
?]
Will this work better?Comment


Boneprone-4-Life Family Approved</A>
Comment