Can anyone say how reliable this method is?
We would much prefer to be given a unique URL as I have heard that using php to record the referring URL is not 100% accurate.
Can anyone confirm this and why it is not reliable?
I would appreciate any information at all,
Many thanks in advance,
Will.
How reliable REQUEST_URI ?
Moderator: General Moderators
How reliable REQUEST_URI ?
Last edited by will83 on Wed Sep 27, 2006 7:03 am, edited 1 time in total.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
User controlled = not reliable, period.
Even a basic user can disable referer logging (f12 in Opera), which will explain hits without referer (also possible if the url is accessed directly)
The danger comes from a malitious hacker changing the referer - depending on how you do the logging the consequences may range from nothing (the best!) to sql injection and/or XSS. So be careful and escape it properly.
Even a basic user can disable referer logging (f12 in Opera), which will explain hits without referer (also possible if the url is accessed directly)
The danger comes from a malitious hacker changing the referer - depending on how you do the logging the consequences may range from nothing (the best!) to sql injection and/or XSS. So be careful and escape it properly.