Hi. I have one part of my script written as
header("location:$_SERVER['HTTP_REFERER']");
This works well but wanna know what I need to escape and cleanup on that referer url in order to be secure?
Thanks anyone.
| SitePoint Sponsor |


Hi. I have one part of my script written as
header("location:$_SERVER['HTTP_REFERER']");
This works well but wanna know what I need to escape and cleanup on that referer url in order to be secure?
Thanks anyone.





I don't think there's anything to worry about here. Nothing that I can think of anyway. Anyone else see a problem?Originally Posted by say
You can't really trust what's in HTTP_REFERER, but it seems the worst that can happen here is that the user gets sent to that url.
--ed
Yes, IMHO that's the only thing that could happen, or some error because the regerer wasn't set (check for it).
which happens for all users that run norton firewall, for instance...Originally Posted by Gaheris
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
Which shows again that you really shouldn't rely on the referer. How about tracking the last location with sessions?





how do you go about doing that? tracking users and their browsing habits, using sessions? i would like to add that to my siteOriginally Posted by Gaheris
i love php
Every script or script part records it's name or tag into a location array stored in a session.how do you go about doing that?
Bookmarks