469,352 Members | 1,982 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

http_referer empty? Firewalls?

Can one reliably use http_referer to track a user page selections as I
appear to be getting BLANK values?

I have read that company firewalls etc block this method....

Thanks
jason
Jul 19 '05 #1
8 4949
*j****@catamaranco.com* wrote:
Can one reliably use http_referer to track a user page selections

[snip]

No, it's strictly optional and is easily spoofed.
--
Andrew Urquhart
- FAQ: www.aspfaq.com
- Contact me: http://andrewu.co.uk/contact/
Jul 19 '05 #2
Thanks, are there any other viable alternatives?

- Jason

"Andrew Urquhart" <us**************************@spam.invalid> wrote in
message news:Of****************@newsfe4-gui.ntli.net...
*j****@catamaranco.com* wrote:
Can one reliably use http_referer to track a user page selections

[snip]

No, it's strictly optional and is easily spoofed.
--
Andrew Urquhart
- FAQ: www.aspfaq.com
- Contact me: http://andrewu.co.uk/contact/

Jul 19 '05 #3
> Thanks, are there any other viable alternatives?

Post the data from page to page. Use session variables. Use a session
identifier in the querystring and store the data in the database.

As for the problems with HTTP_REFERER, see http://www.aspfaq.com/2169

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #4
*j****@catamaranco.com* wrote:
*Andrew Urquhart* wrote:
*j****@catamaranco.com* wrote:
Can one reliably use http_referer to track a user page selections
[snip]


No, it's strictly optional and is easily spoofed.


Thanks, are there any other viable alternatives?


Ultimately the stateless nature of HTTP prevents this, but you can
attempt to do so via cookies, querystrings and form posts usually in
conjunction with some sort of database.
--
Andrew Urquhart
- FAQ: www.aspfaq.com
- Contact me: http://andrewu.co.uk/contact/
- This post is probably time-stamped +1 hour - blame my ISP (NTL)
Jul 19 '05 #5
*Aaron [SQL Server MVP]* wrote:
As for the problems with HTTP_REFERER, see http://www.aspfaq.com/2169


Possible additions for that FAQ entry:

"The situations where it doesn't work:"

10. If the user is using a Firewall or privacy filtering software
11. If the client allows referrers to be turned off (e.g. Opera,
Mozilla)

Perhaps there should also be a note on its reliability if it is present
because of ease of spoofing it?
--
Andrew Urquhart
- FAQ: http://www.aspfaq.com
- Contact me: http://andrewu.co.uk/contact/
- This post is probably time-stamped +1 hour - blame my ISP (NTL)
Jul 19 '05 #6
Would one have the same problem with the URL and PATH parameters...maybe I
could somehow string the original URL together useing these...

"Andrew Urquhart" <us**************************@spam.invalid> wrote in
message news:bK****************@newsfe6-gui.ntli.net...
*Aaron [SQL Server MVP]* wrote:
As for the problems with HTTP_REFERER, see http://www.aspfaq.com/2169


Possible additions for that FAQ entry:

"The situations where it doesn't work:"

10. If the user is using a Firewall or privacy filtering software
11. If the client allows referrers to be turned off (e.g. Opera,
Mozilla)

Perhaps there should also be a note on its reliability if it is present
because of ease of spoofing it?
--
Andrew Urquhart
- FAQ: http://www.aspfaq.com
- Contact me: http://andrewu.co.uk/contact/
- This post is probably time-stamped +1 hour - blame my ISP (NTL)

Jul 19 '05 #7
Thanks

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:uM****************@TK2MSFTNGP11.phx.gbl...
Thanks, are there any other viable alternatives?


Post the data from page to page. Use session variables. Use a session
identifier in the querystring and store the data in the database.

As for the problems with HTTP_REFERER, see http://www.aspfaq.com/2169

--
http://www.aspfaq.com/
(Reverse address to reply.)

Jul 19 '05 #8
Special Note: Browser Hawk Referrer works like a dream, so problem solved!

I am testing for both persistent and client side cookies - See checktype 3:

<%
set bh = Server.CreateObject("cyScape.browserObj")

Response.write CheckType
checkType = 3

if checkType = 3 then
bh.SetExtProperties "cookie_both,referrer"
elseif checkType = 2 then
bh.SetExtProperties "cookie_sess"
elseif checkType = 1 then
bh.SetExtProperties "cookie_perm"
else
response.write "<html>bad checkType specified</html>"
response.end
end if
bh.GetExtPropertiesEx
%>

I then successfully called the bh.Referrer property....

Great component that!

Thanks
Jason
<ja***@catamaranco.com> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...
Can one reliably use http_referer to track a user page selections as I
appear to be getting BLANK values?

I have read that company firewalls etc block this method....

Thanks
jason

Jul 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Jez | last post: by
1 post views Thread by Krzysztof Piotrowski | last post: by
2 posts views Thread by James | last post: by
4 posts views Thread by agflem | last post: by
22 posts views Thread by walterbyrd | last post: by
8 posts views Thread by mrsmithq | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.