I'm trying to use <% rReferer =REQUEST.SERVERVARIABLES("HTTP_REFERER")%>
and capture the referer URL in the variable 'rReferer'.
All I get is the URL of the very page I'm inserting this code into, that is, it refers itself. "sigh"! Yes, I'm clicking from another web page to test it. Am I coding this properly?
Through the years there's always been trepidation about relying on the Session_OnEnd routine being fired at the conclusion of a user session, hence my instinctive avoidance of using it in anything I've created.
Now comes a time when it'd actually be desirable to use this feature; can anyone tell me if its reliability is any better with IIS6 (under Server 2003) than it was with previous IIS incarnations?
if it's possible to catch the url that the user is visiting after leaving our site. I mean, I use HTTP_REFERER to see from which url the visits are coming from, I want to know if there is some way to catch which url they visit after leaving our site.
I am making a small ASP script to track users from an email marketing campaign. Basically the email is sent to subscribers, then when they click on an offer they are sent to a third party provider. Right now we can track how many users open the email, and how many visit the site, but we would like to track conversions. The third party will only provide stats via referer. Is there an easy way in ASP to set a referer to a custom url during the redirection?
I built a site half a year ago with form that submits to page that processes the info and then returns the user back to the page they came from using HTTP_REFERER.
There's one guy -- using an identical set-up to our main testing platform -- who kept getting the "URL required" error when doing this. For some reason, on his system alone, HTTP_REFERER was not collecting any referring URL. Is it common for HTTP_REFERER to wuss out like this? What causes it?
I have a question about the Max Referer length. By default this is 256. I am not fully sure I understand this property. It this a header that is sent back to the Server by a client and is it part of the URL.
While testing our Secure IIS I ahd the error come up I increased the value to 1080 and the error did not repeat!. But through my search the Max Referer lenght is always 256. SO I am trying to get feel for what the Referer really is, is it part of the HTTP 1.1 protocol?
I have a CMS with access restriction to every page (the user must log on first). If a user tries to access a page while not logged on then they are redirected to the log on page.
In this case I want the log on page to send the user to the page they were trying to access, after they log back on.
Because the page restriction is the first bit of vbscript on every page, non-logged on users are redirected before the rest of the page loads, so using Request.Servervariables("HTTP_REFERER") does not work (I think this is the problem).
I've got a lot of referer variables in my dbase and I'd like to have a query that groups them just by the domain. Everything up to the 3rd "/" should do it. So far, I'm using:
SELECT COUNT(id) AS clicktotal, ref FROM clicklogs GROUP BY ref
This only lists everything by the actual referring url. Is there a way to only have it group by the domain within the referring url?
I need to redirect after processing to the previous script (referer). However I dont wish to redirect including the querystring. Just the referer's script name.
Is there any way to prevent an IE 6 browser from sending up the REFERER HTTP header? (Either as an IIS Server setting, change to asp files, or even a setting in the IE browser).
This is wasting WAN bandwidth in our Intranet application - we have fairly low network bandwidth. The referer is inevitably somewhere else in our own ASP application, and is usually has a really nasty long QString attached ... (and no, really dont want to run stats about how users navigate our app)..
I have been trying like mad to get this script and this form to work. i'm at the point where the error message i get upon hitting the "SUBMIT" button is simply Form could not be processed due to the following errors:
I am able to get the value for "request.ServerVariables("http_referer")". However, I try to use this value in a "response.redirect" and the value disappears. Why is this happening. Example: -------------------------------------------------------------------------
If Not Session("whatEver") = True Then Dim httpVar, EncodeHttpVar httpVar = Request.ServerVariables("HTTP_REFERER") EncodeHttpVar = Server.URLEncode(httpVar)