GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Do redirected pages show referrer? (https://gfy.com/showthread.php?t=40640)

Hypo 10-16-2001 12:21 AM

Do redirected pages show referrer?
 
If I send a page from domainA to domainB which automatically redirects via javascript to DomainC, will DOmainC see the referrer as DomainB?

Techie Media 10-16-2001 01:29 AM

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

mika 10-16-2001 01:36 AM

How about, if I link from page A to page B normally, and from page B to page C with metarefresh in 0 seconds, would it be possible (in theory) that page A would be shown as the referring page for page C?

ldinternet 10-16-2001 01:46 AM

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. http://bbs.gofuckyourself.net/board/cool.gif

TheFLY 10-16-2001 01:54 AM

works better w/ cgi redirect

------------------
<A HREF="http://www.thefly.net/topfly.html" TARGET=_blank>
http://thefly.net/flybump.gif Boneprone-4-Life Family Approved</A>

[This message has been edited by TheFLY (edited 10-16-2001).]

TheFLY 10-16-2001 01:56 AM

meta refresh is unreliable anyway


manuelk 10-16-2001 02:05 AM

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).]

TheFLY 10-16-2001 02:14 AM

sweet...

php rulez..

is there a way to draw .gif files w/ php? ya know for graphs and neato stuff like that...

manuelk 10-16-2001 02:18 AM

Of course there is - any special thing/solution you mean ? PHP with sql database backend is ma favorite thing to offer solutions.

Hypo 10-16-2001 02:21 AM

Thanks! Are you 100% sure about the php redirect?

manuelk 10-16-2001 02:23 AM

100% - yes ;o) code is displyed correct now (without the first \ of course) - the board removed the url things before.

[This message has been edited by manuelk (edited 10-16-2001).]

Hypo 10-16-2001 02:38 AM

How do I make it work from html? I have the traffic coming to an html page and it will be difficult to change it to php for a couple of days.

Hypo 10-16-2001 02:40 AM

Ok, can I have this - html page redirects using javascript to php page - php page rdirects using php to sponsor page? Will the sponsor receive my url that way?

manuelk 10-16-2001 02:42 AM

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)

wiZd0m 10-16-2001 02:46 AM

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

Hypo 10-16-2001 02:52 AM

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.

manuelk 10-16-2001 03:00 AM

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).]

Hypo 10-16-2001 03:12 AM

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).]

Hypo 10-16-2001 03:30 AM

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?

Hypo 10-16-2001 03:42 AM

Its not working - the target doman is not showing these hits. Any suggestions?

manuelk 10-16-2001 04:25 AM

I donīt use java script too much so I am the wrong person to ask but about the php - do you get any errors (like is it not working) or does the refer just donīt show up ?

Hypo 10-16-2001 04:33 AM

The php page is redirecting to the target page, but the target page is not showing the referrer as my domain.

Anyway, thanks for all the help!

Hypo 10-16-2001 04:34 AM

I have the javascript redirect page before the php page, that might be the problem.

manuelk 10-16-2001 04:47 AM

Of course its not working what I wrote - that are just two other commands to send the url to the browsers header in a better way - that code was complete wrong - sorry for that. I didnīt used the header function since some time.

Hypo 10-16-2001 05:16 AM

Is it even possible to fake a referrer through someone else's browser? I understand you can fake the referrer using a cgi script requesting a page, but can it be done through a visitor's browser?

Hypo 10-16-2001 05:51 AM

I've got an idea - with httaccess.

If I redirect a surfer from another domain to a non-existing page on my domain, and set the httaccess to send him off to the target, will the referrer be my domain?


All times are GMT -7. The time now is 09:06 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123