473,325 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Hit redirection & HTTP_REFERER

Hi all,

I have a hit counter that is utilized through a page on our webserver
to track statistics on our clients internally. However, on the
hitcounter page i do a server side re-direct on our server to the new
URL. This does not however pass the HTTP_REFERER variable to our
clients homepage as the user didn't actually click an anchor tag with an
HREF to the specific URL. We *need* to do this - so what we want to do
is still use the internal stats we keep, but some how pass the
HTTP_REFERER info via javascript or something to our clients site? From
my research so far - this does not seem possible. I've even tested with
a META refresh, javascritp document.location.href redirect and so on.
All of them will not pass the HTTP_REFERER unless the user actually
clicks the <a> tag with the exact URL in it. Any insight on this would
be greatly appreciated. Thanks!
--

Regards,

Troy
Nov 18 '05 #1
1 958
Troy wrote:
Hi all,

I have a hit counter that is utilized through a page on our
webserver to track statistics on our clients internally. However, on
the hitcounter page i do a server side re-direct on our server to the
new URL.
There is no such thing as server-side redirect. Redirects are "special" HTTP
responses sent to the client. Anything else is a flow control feature of
your web application's platform. So I guess you're doing a
Server.Transfer()?
This does not however pass the HTTP_REFERER variable to our
clients homepage as the user didn't actually click an anchor tag with
an HREF to the specific URL. We *need* to do this [...]


Then you better start rethinking your approach. Proxies may change this
header as they see fit. Unless you're talking about an intranet solution,
this is completely beyond your control.

Cheers,

--
Joerg Jooss
jo*********@gmx.net

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John A. Irwin | last post by:
I'm very new to PHP and am trying to figure out how to parse out a variable "HTTP_REFERER". My reason for this is my site was recently "FEATURED" (sic) on a website called FARK.COM. Because of...
2
by: ssk | last post by:
Hello! I made a web site using PHP Open sources for message board. Everything's fine except one computer can't open a message writing page. The code that gives an error is the following. ...
4
by: Lam | last post by:
I try to use qs = Server.URLEncode(Request.Querystring) session("fromURL") = request.ServerVariables("HTTP_REFERER")& Server.HTMLEncode(qs) on the login page then on the next page I use...
2
by: M Smith | last post by:
On our web site we allow our members access to features hosted by another web site. The way the other web site authenticates users is to check the value of the HTTP_REFERER. If it comes from our...
3
by: Frank Side Burns | last post by:
I have a web page (let's call it main.aspx) that must only be accessible thru another web page in my web application. Users should not be able to browse directly to 'main.aspx'...they can only be...
3
by: Des | last post by:
I have a web email contact us that if the cancel button is presed it redirects to the home page. using header('Location: index.php'); I have a session variable on every page which sets the a...
1
by: comp.lang.php | last post by:
require_once("/users/ppowell/web/php_global_vars.php"); if ($_GET) { // INITIALIZE VARS $fileID = @fopen("$userPath/xml/redirect.xml", 'r'); $stuff = @fread($fileID,...
4
by: psual | last post by:
hi newbie in web design I got some issue concerning a secure redirection between 2 pages let say I have a page with a grid (the 'master' page) in this grid I can select a record, get its pk...
13
by: Adhal | last post by:
Hi, How can I stop hotlinking to a specific file, and I want it to redirect it to a PHP link so I can monitor the number of downloads. Here is my site with the download page:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.